EA wont set TP and SL....
-
Using ATR to set values however not working... What am I doing wrong here?
Look at the screenshot below.... -
-
@matic-0 Change custom pips to fixed pips, and all should work.
-
@jstap Doesn't work sadly
-
@matic-0 That code is code I put together so I know it works, put a shared link here and I'll see what can be done. In the top left in the project link, you can create a shared link to paste here.
-
-
@matic-0 https://fxdreema.com/shared/vpRGnUEA
I changed the digits custom code to the market properties option, makes no difference I just didn.t realise it was there before, I added the ATR TP to comments so it can be visually checked and removed the conditions, replaced them with a random output block for back testing and I don't have the required indicators. All is working as expected so problems were in you conditions. Hope this helps.
-
@jstap yes issue is with condition... it is with custom indicator.. I tested without and it works but when I add the indicator its like it glitches out the EA
-
@matic-0 Create a separate project just for the indicator, if it doesn't work try and find a replacement.
-
@matic-0 you have to sum a value of "price" to the ATR because the ATR value is a price fraction not a price, so in order to structure the TP price you need to formulate Close or Open or any price plus ATR or minus depend of what to want to calculate. https://bit.ly/3z4OskH
-
@diazoviedo No mate the code being used converts the ATR value into pips.