I am trying to see it up where I can have an order opened up when it hits an indicator line
I am wondering what is the best way to pass a buffer variable result to a variable in the EA? I have two indicators... each with 6 lines (each their own buffer)....
Thus, if price = result; open trade... and opening only one trade per line.... I have 4 lines and when line 1 is hit, I don't want it to open another trade at line 1... it can then hit line 2 and open a trade...
line 0 is the guiding line, it is a moving average line
at line 1, open base size lot
at line 2, open base size lot *2
at line 3, open base size lot *3
at line 4, open base size lot*6
at line 5, close the trade at stop loss
once it comes back to line 0, it will close all trades
so if base size lot is .01... then it would open up a .01 trade, .02 trade, .03 trade, and a .06 trade.... thus a lot size of .12 would be opened
Also, I can use an array to store how many times each line has been hit for ratio purposes, correct? And is there a way to start a clock when line 1 is hit until line 0 is hit? Thus, measure how long it takes to come back to the moving average line
I am wondering what is the best way to pass a buffer variable result to a variable in the EA? I have two indicators... each with 6 lines (each their own buffer)....
Thus, if price = result; open trade... and opening only one trade per line.... I have 4 lines and when line 1 is hit, I don't want it to open another trade at line 1... it can then hit line 2 and open a trade...
line 0 is the guiding line, it is a moving average line
at line 1, open base size lot
at line 2, open base size lot *2
at line 3, open base size lot *3
at line 4, open base size lot*6
at line 5, close the trade at stop loss
once it comes back to line 0, it will close all trades
so if base size lot is .01... then it would open up a .01 trade, .02 trade, .03 trade, and a .06 trade.... thus a lot size of .12 would be opened
Also, I can use an array to store how many times each line has been hit for ratio purposes, correct? And is there a way to start a clock when line 1 is hit until line 0 is hit? Thus, measure how long it takes to come back to the moving average line