SL & TP Inputs on Chart
-
Hi guys
May you please assist me with building this small EA.
I want to be able to display an input box on chart for SL and TP. This is how i want it to work. The box for SL will change all SL values for all types of trades, boxes for take profit -TP1 will change group 1 trades only, TP2 for group 2 and TP3 for group 3 only.
-
Add a edit field to on init, on tick retrieve this value and put in a variable, test with this 1, put in a comment, once working add the other fields, you can then use these variables in other blocks.
-
@jstap please assist me by creating an example for me, i am not good with variables. I will appreciate your help
-
No but I will assist if you try and then add a shared link to look at.
-
https://fxdreema.com/shared/aEAWd9kCc
This is what i have and i want it to work the way i described it above
-
Ok so you have your EA, start a test project just getting the value from the edit field, I showed how 2 start above.
-
That is what i am not understanding hence i need assistance "getting the value from the edit field".
-
Then start a test project, pass block-draw edit field (on int), pass block- modify variable block, get data from object on chart (on tick).
-
@jstap
Do you mean something like this
https://fxdreema.com/shared/nIMgoeT1c -
This is how to do it, you can watch what happens when you change the edit field, is is a bit backwards, in as much as you need to use text to get the number. https://fxdreema.com/shared/Jms3Zj7Gd