Quote:
Originally Posted by demam_emas
i think you should use previous bar instead current bar. Use bar index 1, not 0 for your oscillator.
Good luck 
|
Or use previous bar And current bar.
if (current_bar > previous_bar)
{Ordersend() Long}
if (current_bar < previous_bar)
{Ordersend() Short}
Use something like that, This will stop the multiple open and close of orders in a small time frame. Plus it is using two bars to confirm the trend, instead of just one.
Just my thoughts, good luck!