Thank you for giving time to consider this.
I was trying to create a strategy for my manual trading system. However I found difficulty to code this part, I knew that Wiz does not help with it but I can code it by myself now.
The problem is that the strategy is a bit complicated, I managed first to creat my own 3 indicators plotting differently on the chart. when several conditions were met,
To explain better, my own indicators are ploting different colors.
For short postion: When 1st indicator plots Blue, after several bars 2nd indicator plots Green , and after several bars the same 2nd indicator plots Red. I enter sell position on the close of red plotting.
For Long position: when Pink from indicator 1 plots, and Red from indicator and Green plot from indicator 2. I enter Long at the green.
I searched in your forum all the treats and tried to use countIf condition to call for previous
if (CountIf(delegate {return Close[0] >Open[2] && Close[1]<Open[1];}, 10) > 0)
{
}
However, I was not able to create a countIf condition with an indicator plot.
Besides, I tried this alternative to use the logic I used for creating the ploting of the indicators However, and since the condition used to plot is very long and complicated including RSI, bollinger and other 2 other indicators related to each other I wasn't able to do so.
So my question: is there any possibility to create this logic, looking to the last 50 bars if these plots exists (2 plots) and enter when the 3th condition shows (Enter position).
in other word:
if (CountIf(delegate {return ındicator1_plot_blue && indicator2_plot_Red;}, 50) == true or exists)
&& the indicator_Plot_green[0] is true
{
enter
}
I hope I was able to explain myself since it seems very difficult to explain even.
Looking forwards to hearing from you.
Thanks .
Yassine
Comment