Mc Temple / Publications
Forum
Why won't my robot buy at the right time?
oid OnTick () { double parabolic = iSAR ( _Symbol , _Period , 0.02 , 0.2 , 0 ); double KLine = iStochastic ( NULL , 0 , 5 , 3 , 3 , MODE_SMA ,MODE_MAIN, 0 , 0 ); if ( OrdersTotal () == 0 ) { if (KLine < 20 && Ask > parabolic) { OrderSend ( _Symbol ,OP_BUY, 0.1 ,Ask, 3 ,Ask- 50 * _Point ,Ask+ 25 *
How would I find out if The Awesome Indicator is Red?
I couldnt find out how to do this. So I made a code, that detected if the next value is 90% of the previosu candle it detects it as red. EA must be colorblind xd. bool AwesomeRedConfirmedVariable() { double AOone = iAO ( _Symbol , _Period , 1 ); double AOtwo = iAO ( _Symbol , _Period , 2 ); //double