I have developed a strategy that counts a certain number of bars before of the bar "0" to enter a position. Today, I put this rule in a plastered form, that is, I repeat it ten times in the Ninja Editor code... eg:
&& (Close[1] > Open[1])
&& (Close[2] < Open[2])
&& (Close[3] < Open[3])
&& (Close[4] < Open[4])
&& (Close[5] < Open[5])
&& (Close[6] < Open[6])
&& (Close[7] < Open[7])
&& (Close[8] < Open[8])
&& (Close[9] < Open[9])
&& (Close[10] < Open[10])
I would like to optimize this setup and put a user input so that he can choose how many bars the setup will have to wait to close before giving an input, as well as being able to optimize this strategy in Analyzer.
I know there is a barsSinceEntry feature.... But I don't know how to use it.
Could someone kindly help me, please?
Thank you from now on.
Comment