Menu
Brokers
MT4 Forex Brokers
MT5 Forex brokers
PayPal Brokers
Skrill Brokers
Oil Trading Brokers
Gold Trading Brokers
Web Browser Platform
Brokers with CFD Trading
ECN Brokers
Bitcoin FX Brokers
PAMM Forex Brokers
With Cent Accounts
With High Leverage
Cryptocurrency Brokers
Forums
All threads
New threads
New posts
Trending
Search forums
What's new
New threads
New posts
Latest activity
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Reply to thread
Forums
Trading Platforms
MetaTrader Expert Advisors
Help with my EA
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
[QUOTE="Enivid, post: 230472, member: 1"] There are multiple issues in your code. The ones I've noticed are the following: 1. Your code executes only if the current candle started at 10:00 server time. Then all your checks are for the previous candle. So, if you are on H1, it performs all the checks for the 9:00 candle. Is that how you intend it to work? 2. When you are reading the ATR value, you don't set the Shift value - not sure how that even compiles without errors. 3. All your entry conditions are checking whether Close of the previous candle is higher than the High of the previous candle or whether that Close is lower than the Low of the same candle. Obviously, neither condition will ever be true. 4. Your ModifyOrder() function (which is actually used for entry) can only open buy orders. 5. The same function applies some spread adjustments to SL and TP, but it looks like you already do those once before calling the function. [/QUOTE]
Insert quotes…
Verification
Post reply
Top
Bottom
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.
Accept
Learn more…