
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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,