I'm backtesting your EA and found something I don't understand about TP and SL levels.
First of all:
If make a run with all default params i can't see no SL nor TP set during order placement, nor I see ordermodify operations.
I've forced the mt4ecn to false even if I'm on a 5 digits and now the SL is regullary set during order placement but not the TP.
Second (and what puzzles me more):
There is no way to see TP and SL dinamically move when AutomaticTakeProfit=true and AutomaticStopLoss=true.
Taking a look to the modif() function I can't see how it could change them!! There is no if(opttp && autsl) that does the trailing.
The only chance you have is that the ordermodify goes wrong and it has to reiterate entering the last if.
Am I wrong?
Hello lord_hiro,
Since MT4 Build 625, ordermodify is no need anymore to MT4ECN. In other words, order proccess to MT4ECN is the same as MT4 Standard (4 digits).
Now I'm still making an updates to EA SmartAssTrade, so you do not need to hard thinking about how to make modifications to the EA.
Actually, EA on free download Code Base, just as a sample ideas for traders or programmers to create or develop their own EA. Therefore, with my code on EA SmartAssTrade maybe you can make or create a better EA.
Dear Friend Roy, I am beginner and his work is far beyond what I can understand, at the time. Congratulations. I put the "EA" in a bullish move it to "buy", but he made no purchase. All settings were default. See here:
Dear Friend Roy, I am beginner and his work is far beyond what I can understand, at the time. Congratulations. I put the "EA" in a bullish move it to "buy", but he made no purchase. All settings were default. See here:
Dearmyfriendmaciel7000. I sorry, I do not understandyour point. This EA'scode,itis not relevantsinceMT4Build625. NowI amstilltryingto update thecodeand formula, Iwillsoonsharein thecodebasewiththe nameSmartAssTrade-V2.
myfriendmaciel7000. I sorry, I do not understandyour point. This EA'scode,itis not relevantsinceMT4Build625. NowI amstilltryingto update thecodeand formula, Iwillsoonsharein thecodebasewiththe nameSmartAssTrade-V2.
It's up to you, if you like to make modification or optimization and improve that EA for your purpose only.
But, Are you don't know that magicnumber, deviation, color,
or something like it, will not be accepted by MT4 ECN server?
If you don't know that in MT4 ECN, OrderSend function () should not be put TP and SL,
MagicNumber, Deviation and Color? But TP and SL should be done through OrderModify function ()?
Hence, why on the EA SmartAssTrade I make lot of command OrderModify ().
If you try the script that you modified on MT4 ECN, I am sure that EA will not make a trade at all.
For your information, when I tradingon mybrokerserver(2and4 digits or3and5digitsafterthe decimalpoints)is notan errorat allas you say.
In deinit function (), I made an command for modification of the order,
because if it is not modified, when the computer is turned off
(on the set TP=true or SL=true), then the orders are still open
(floating loss) that currently do not have TP or SL.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
I'm backtesting your EA and found something I don't understand about TP and SL levels.
First of all:
If make a run with all default params i can't see no SL nor TP set during order placement, nor I see ordermodify operations.
I've forced the mt4ecn to false even if I'm on a 5 digits and now the SL is regullary set during order placement but not the TP.
Second (and what puzzles me more):
There is no way to see TP and SL dinamically move when AutomaticTakeProfit=true and AutomaticStopLoss=true.
Taking a look to the modif() function I can't see how it could change them!! There is no if(opttp && autsl) that does the trailing.
The only chance you have is that the ordermodify goes wrong and it has to reiterate entering the last if.
Am I wrong?
Hello,
I'm backtesting your EA and found something I don't understand about TP and SL levels.
First of all:
If make a run with all default params i can't see no SL nor TP set during order placement, nor I see ordermodify operations.
I've forced the mt4ecn to false even if I'm on a 5 digits and now the SL is regullary set during order placement but not the TP.
Second (and what puzzles me more):
There is no way to see TP and SL dinamically move when AutomaticTakeProfit=true and AutomaticStopLoss=true.
Taking a look to the modif() function I can't see how it could change them!! There is no if(opttp && autsl) that does the trailing.
The only chance you have is that the ordermodify goes wrong and it has to reiterate entering the last if.
Am I wrong?
Hello lord_hiro,
Since MT4 Build 625, ordermodify is no need anymore to MT4ECN.
In other words, order proccess to MT4ECN is the same as MT4 Standard (4 digits).
Now I'm still making an updates to EA SmartAssTrade, so you do not need to hard thinking about how to make modifications to the EA.
Actually, EA on free download Code Base, just as a sample ideas for traders or programmers to create or develop their own EA.
Therefore, with my code on EA SmartAssTrade maybe you can make or create a better EA.
Thanks and regards.
Please add the buying strategy.. It will be great.
The EA code is not relevant since MT4 Build 625.
Now I am still trying to update the code and will soon share in the Code Base with the name SmartAssTrade-V2.
Regards.
I sorry, I do not understand your point.
This EA's code, it is not relevant since MT4 Build 625.
Now I am still trying to update the code and formula, I will soon share in the code base with the name SmartAssTrade-V2.
Regards.
------------------------------------------------------------------
Dearmy friend maciel7000.
I sorry, I do not understand your point.
This EA's code, it is not relevant since MT4 Build 625.
Now I am still trying to update the code and formula, I will soon share in the code base with the name SmartAssTrade-V2.
Regards.
3rjfx
-------------------------------------------------------------------------------
Hi willgart,
But, Are you don't know that magicnumber, deviation, color,
or something like it, will not be accepted by MT4 ECN server?
If you don't know that in MT4 ECN, OrderSend function () should not be put TP and SL,
MagicNumber, Deviation and Color? But TP and SL should be done through OrderModify function ()?
Hence, why on the EA SmartAssTrade I make lot of command OrderModify ().
If you try the script that you modified on MT4 ECN, I am sure that EA will not make a trade at all.
For your information, when I trading on my broker server (2 and 4 digits or 3 and 5 digits after the decimal points) is not an error at all as you say.
because if it is not modified, when the computer is turned off
(on the set TP=true or SL=true), then the orders are still open
(floating loss) that currently do not have TP or SL.
Hope you can understand.
Regards.
1. Magic Number has nothing about ECN
2. ECN is not determined by Digits
3. Only one value can be returned for a function.
//
//+------------------------------------------------------------------+//
Hello there
Im using the Smartasstrade update 2 version is this ok?.... i mean this is the latest updated version yes? :)
Btw great EA im using it on Demo and its good, i do close some trade manually when its in profit. I will be going live soon and see.
1. Magic Number has nothing about ECN
2. ECN is not determined by Digits
3. Only one value can be returned for a function.
//
//
Dear fxmeter,
You are correct, and the code of this EA is already irrelevant since MT4 Build 625.
Therefore, I am now still doing updates for this EA code.
Regards,