// determine entry based on CCI if (cciperiod > 0 && isNewBar == true) { firebuy = false; firesell = false; double cci = iCCI(Symbol(), 0, cciperiod, PRICE_TYPICAL, 0); if(sellallowed && cci < ccimin) if ( volatility > VolatilityLimit ) { firesell = true; sellallowed = false; } if(buyallowed && cci > ccimax) // if ( volatility > VolatilityLimit ) { firebuy = true; buyallowed = false; } if (cci < ccimax && cci > ccimin) { buyallowed = true; sellallowed = true; } }
by moving,I want to say :// determine entry based on CCI if (cciperiod > 0 && isNewBar == true) { firebuy = false; firesell = false; double cci = iCCI(Symbol(), 0, cciperiod, PRICE_TYPICAL, 0); if(sellallowed && cci < ccimin)// if ( volatility > VolatilityLimit )
{ firesell = true; sellallowed = false; } if(buyallowed && cci > ccimax)if ( volatility > VolatilityLimit )
{ firebuy = true; buyallowed = false; } if (cci < ccimax && cci > ccimin) { buyallowed = true; sellallowed = true; } }
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
Thanks for your help .
Gerard