AIS101 Trading Robot: Modification Current modification: AIS101 #define A.System.Robot "AIS101 Trading Robot" //< 6> #define A.System.ReleaseDate "14.02.2009" //< 8> #define A.System.ReleaseCode "101" //< 9> Previous modification: AIS1 #define A.System.Robot "AIS1 Trading Robot" //< 6> #define A.System.ReleaseDate "09.02.2009" //< 8> #define A.System.ReleaseCode "1" //< 9> Content 1. "Buy" logic correction 1. "Buy" logic correction 1.1. Module: "7.6. Strategy Logic" 1.2. Lines: 166, 169 " < AIS101 > //< 7.6. Strategy Logic >--------------------------------------------------------------------------------------//<161> //<162> if ( OrdersTotal () > 0 ) return ; //<163> //<164> if ( ald.Close.1 > ald.Average.1 ) //<165> if ( ald.QuoteAsk > ald.High.1 + ald.QuoteSpread ) //<166> { ali.Command = OP_BUY ; //<167> ald.Price = ald.QuoteAsk ; //<168> ald.Stop = NormalizeDouble ( ald.High.1 + ald.QuoteSpread - ald.QuoteStop , ald.Digits ) ; //<169> ald.Take = NormalizeDouble ( ald.QuoteAsk + ald.QuoteTake , ald.Digits ) ; //<170> ald.Risk = ald.Price - ald.Stop ; } //<171> //<172> if ( ald.Close.1 < ald.Average.1 ) //<173> if ( ald.QuoteBid < ald.Low.1 ) //<174> { ali.Command = OP_SELL ; //<175> ald.Price = ald.QuoteBid ; //<176> ald.Stop = NormalizeDouble ( ald.Low.1 + ald.QuoteStop , ald.Digits ) ; //<177> ald.Take = NormalizeDouble ( ald.QuoteBid - ald.QuoteTake , ald.Digits ) ; //<178> ald.Risk = ald.Stop - ald.Price ; } //<179> //<180> //--------------------------------------------------------------------------------------//<181> < AIS1 > //< 7.6. Strategy Logic >--------------------------------------------------------------------------------------//<161> //<162> if ( OrdersTotal () > 0 ) return ; //<163> //<164> if ( ald.Close.1 > ald.Average.1 ) //<165> if ( ald.QuoteAsk > ald.High.1 ) //<166> { ali.Command = OP_BUY ; //<167> ald.Price = ald.QuoteAsk ; //<168> ald.Stop = NormalizeDouble ( ald.High.1 - ald.QuoteStop , ald.Digits ) ; //<169> ald.Take = NormalizeDouble ( ald.QuoteAsk + ald.QuoteTake , ald.Digits ) ; //<170> ald.Risk = ald.Price - ald.Stop ; } //<171> //<172> if ( ald.Close.1 < ald.Average.1 ) //<173> if ( ald.QuoteBid < ald.Low.1 ) //<174> { ali.Command = OP_SELL ; //<175> ald.Price = ald.QuoteBid ; //<176> ald.Stop = NormalizeDouble ( ald.Low.1 + ald.QuoteStop , ald.Digits ) ; //<177> ald.Take = NormalizeDouble ( ald.QuoteBid - ald.QuoteTake , ald.Digits ) ; //<178> ald.Risk = ald.Stop - ald.Price ; } //<179> //<180> //--------------------------------------------------------------------------------------//<181> "