The question is how can i insert 2 types of variable(price levels and variation) and than let it buy or sell if markets touches these levels and then goes up or down.
Example:
input 1=1,37
input 2=1,3650
input 3=0,0002
the ea musts buy all times that market touches 1,37 and then goes to 1,37002(+ 2 pips),so opens a trade buy at this last price(no pending order).
In other case,if after had touched 1,37 goes down to 1,3698(-2 pips with input 3=0,0002) opens a trade sell at this last price.
Same thing for 1,3650.
How can i do this?
the input are variables in order to be after optimized