extern int barslater=2; datetime prevbar = -1; int counter; void start() { if(prevbar == -1) counter=0; if( SIGNAL ) prevbar=Time[0]; if(prevbar != -1) if(prevbar!=Time[0]) { counter++ prevbar=Time[0]; } if(counter>barslater) { prevbar=-1; BUY(); } }
int barsNext = 2; datetime triggerTime; if( SIGNAL ) triggerTime = Time[0]+Period()*60*barsNext; if( Time[0] == triggerTime ) { triggerTime = 0; // BUY or SELL? }
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Regards,
Damian