- ਜੁਲਾਈ 27, 2017
- ਵੱਲੋਂ ਪੋਸਟ ਕੀਤਾ ਗਿਆ: ਫਾਰੇਕਸ ਵਿਕੀ ਟੀਮ
- ਸ਼੍ਰੇਣੀ: MQ5
ਕੋਈ ਟਿੱਪਣੀ ਨਹੀਂ
1692
1557
Growth of the code Multi Arbitration 1.000 .
Variations from 1.000 :
-
- The Knowledgeable Advisor ONLY begins on PERIOD_M1 (see under for the reason, see the ਸਮਾ ਸੀਮਾ ਪੈਰਾਮੀਟਰ ).
- ਹੁਣ ਇਹ ਸਲਾਹਕਾਰ ਦੋ ਪ੍ਰਤੀਕਾਂ 'ਤੇ ਸਿੱਧਾ ਵਪਾਰ ਕਰਦਾ ਹੈ. The second character is taken from the static array ExtArrSymbols :
String ExtArrSymbols [ 20 ] = ; //+------------------------------------------------------------------+ //| ਗਿਆਨਵਾਨ ਸ਼ੁਰੂਆਤੀ ਪ੍ਰਦਰਸ਼ਨ | //+------------------------------------------------------------------+ int OnInit()
- The precept of opening positions is modified:
- Now the brand new place "ਖਰੀਦੋ" might be opened solely when the present worth is under the bottom place "ਖਰੀਦੋ";
- The brand new place "ਵੇਚੋ" might be opened solely when the present worth is increased than the best place of "ਵੇਚੋ":
- ਦ ਸਮਾ ਸੀਮਾ parameter is entered - now you'll be able to optimize on any interval of the graph. The Knowledgeable Advisor itself works solely when a brand new bar seems on the principle image (on the image on which the Knowledgeable Advisor is operating):
// + ----------------------------------------------- ------------------- + // | Knowledgeable tick perform | // + ----------------------------------------------- ------------------- + void OnTick () { // --- we work solely on the time of the beginning of latest bar static datetime prevtime = 0 ; datetime time_0 = iTime ( 0 , m_symbol_one.Title () , InpTimeFrame ); ਜੇ (time_0 == prevtime) ਵਾਪਸੀ ; Prevtime = time_0;
ਇਥੇ ਹੀ, the variable InpTimeFrame is our enter parameter ਸਮਾ ਸੀਮਾ . ਇਸ ਤਰ੍ਹਾਂ, relying on the worth of the enter parameter ਸਮਾ ਸੀਮਾ, we will make the EA work on any timeframe!
The outcomes of the take a look at for EURUSD: