Download MetaTrader 5
To add comments, please log in or register
Store your source codes in MQL5 Storage. It is secure!
MetaQuotes Software Corp.
Moderator
177129
MetaQuotes Software Corp. 2009.03.26 06:18 

AIS3 Trading Robot Template:

100% ready for trading strategy integration

Author: Airat Safin

MQL4 Comments
16309
MQL4 Comments 2009.03.26 13:24  

wow, what coding is!!! very2 systematic programming... i salute u sir.... best of the best...

regards,

MANSTIR

kovas6
36
kovas6 2009.03.27 19:56  

Hi,

this version is not making any orders, I installed robot in the same way as AIS2TR (this version works fine) and no actions, I got these entrys in the log

Journal:

15:17:53 '1004404': login
15:34:32 Expert AIS3TR EURUSD,M15: loaded successfully
15:34:57 Expert AIS3TR EURUSD,M15: removed
15:35:13 Expert AIS3TR EURUSD,M15: loaded successfully
15:35:14 Expert AIS3TR EURUSD,M15: removed

Experts:

15:35:13 AIS3TR EURUSD,M15 inputs: aed.AccountReserve=0.2; aed.OrderReserve=0.04; aes.Symbol="EURUSD"; aei.Timeframe.1=15; aei.Timeframe.2=1; aed.Parameter.1=1; aed.Parameter.2=2; aed.Parameter.3=3;
15:35:13 AIS3TR EURUSD,M15: Alert: AIS30001 Trading Robot Template: Symbol=EURUSD, Preset=15/1/1.0/2.0/3.0, Reload code=1
15:35:13 AIS3TR EURUSD,M15: initialized
18:29:32 AIS3TR EURUSD,M15: loaded successfully
18:29:32 AIS3TR EURUSD,M15: Alert: AIS30001 Trading Robot Template: Stop code=1/0/0
18:29:32 AIS3TR EURUSD,M15: deinitialized
18:29:32 AIS3TR EURUSD,M15: uninit reason 1
18:29:32 AIS3TR EURUSD,M15: removed
18:29:32 AIS3TR EURUSD,M15 inputs: aed.AccountReserve=0.2; aed.OrderReserve=0.04; aes.Symbol="EURUSD"; aei.Timeframe.1=15; aei.Timeframe.2=1; aed.Parameter.1=1; aed.Parameter.2=2; aed.Parameter.3=3;
18:29:32 AIS3TR EURUSD,M15: Alert: AIS30001 Trading Robot Template: Symbol=EURUSD, Preset=15/1/1.0/2.0/3.0, Reload code=1
18:29:32 AIS3TR EURUSD,M15: initialized

Thank you for help

kovas

Airat Safin
1303
Airat Safin 2009.03.27 20:29  
Hi Kovas
AIS3 Trading Robot Template is just a template.
It has all AIS2 Trading Robot features excluding empty trading strategy logic.
Main purpose of AIS3 Trading Robot Template is fast robot creation by new trading strategy integration.
Explanations about trading strategy integration are in Addendum 2 of Instruction.
Best regards
Ais
ParryMcD
8
ParryMcD 2009.03.28 07:34  

Hello AIS,

I am trying to set it up but have not been successful yet. I understand that ver 3 is just a template and should be used in conjunction with ver 2 (ver 2 is an actual EA - please correct me if I'm wrong). But somehow I'm still not getting it. Sorry for my ignorance, I'm not an advanced user as you are. Maybe I'm missing some important step. But I can't figure out where I've gone wrong. Am I supposed to drop ver 2 on the charts or ver 3 ? How do I associate ver 2 with ver 3 ?

Seems like you have taken a lot of efforts in preparing this template. Please keep up the good work. Thank you so much.

Regards,

Parry McD

ParryMcD
8
ParryMcD 2009.03.28 07:42  

Hi again,

I think one small correction is needed in the AIS3TRIE.txt file

In point - "2.9. Open "AIS102.MQ4" file in "%MT4%/experts" directory" - I think it should read "AIS3TR.MQ4" instead of "AIS102.MQ4" - Is that a valid statement ?

Regards,

Parry McD

Airat Safin
1303
Airat Safin 2009.03.28 09:46  
Hello Parry McD
AIS3 Trading Robot Template and AIS2 Trading Robot have different purposes.
AIS2 Trading Robot is 100% automatic trading system, ready for testing and working.
AIS3 Trading Robot Template is a tool for creating another robot with another trading strategy logic.
AIS3 Trading Robot Template has empty but ready for implementation trading strategy.

Exactly, if "int afr.TradingStrategy ()" function will set any valid values instead of following ones:
"
avi.Command = EMPTY ;
avd.Price = EMPTY ;
avd.Stop = EMPTY ;
avd.Take = EMPTY ;
"
then attempt to execute trading module will be made.

Of course, trading strategy implementation requires some skills in MQL4.
But as for me, for example, I've seen MetaTrader4 first time just in the beginning of 2008.

Thank you for your attentiveness.
Files AIS3TRIE.TXT and AIS2TRIE.TXT will have been corrected.

Best regards

Ais

MQL4 Comments
16309
MQL4 Comments 2009.04.08 18:52  

Hello,

MQL4 Programming is great, but I dont understand anything of it, unfortunately.

Could somebody implement my strategy with 2 Indicators into this template?

As far as I understand, with the template it should be easy to do for somebody who can code.

Thank you

galsa
20
galsa 2009.06.29 21:17  

Hello AIS,

Tnx very much for your effort and for sharing your knowledge ...

I'm trying to implement your Code ( from the text file ) in the template,

but from this stage - 4.3. replace line 1186 with following code:

when I compile,it gives me Warnings

'avd.QuoteTrail' - expression on global scope not allowed C:\Program Files\Meta Trader - Forex Place\experts\AIS3TR.MQ4 (1243, 33)


'avd.QuoteStops' - expression on global scope not allowed C:\Program Files\Meta Trader - Forex Place\experts\AIS3TR.MQ4 (1243, 54)


'avi.Digits' - expression on global scope not allowed C:\Program Files\Meta Trader - Forex Place\experts\AIS3TR.MQ4 (1243, 92)


and so on ...

What does it meen, and how to correct it ??

Tnx again

Gal

galsa
20
galsa 2009.06.30 12:31  
galsa:

Hello AIS,

Tnx very much for your effort and for sharing your knowledge ...

I'm trying to implement your Code ( from the text file ) in the template,

but from this stage - 4.3. replace line 1186 with following code:

when I compile,it gives me Warnings

'avd.QuoteTrail' - expression on global scope not allowed C:\Program Files\Meta Trader - Forex Place\experts\AIS3TR.MQ4 (1243, 33)


'avd.QuoteStops' - expression on global scope not allowed C:\Program Files\Meta Trader - Forex Place\experts\AIS3TR.MQ4 (1243, 54)


'avi.Digits' - expression on global scope not allowed C:\Program Files\Meta Trader - Forex Place\experts\AIS3TR.MQ4 (1243, 92)


and so on ...

What does it meen, and how to correct it ??

Tnx again

Gal

Replying to myself :))

The text file should be change -

instead of line 1186 --> line 1217

instead of lines 1193-1196 --> lines 1224-1227

I wonder why nobody bumped into this problem before me, maybe all of you used an older version ???

Airat Safin
1303
Airat Safin 2009.06.30 15:49  

Hello Galsa,

It may help: AIS4 Trade Machine is totally based on AIS3 Trading Robot Template.

Best regards,

Ais

/ /12
To add comments, please log in or register