Fixed SL and Lot keeps changing
-
I have created a simple EA using RSI trend. I have applied a very basic condition. I'm using a fixed lot and fixed Stop loss pips. But when I back test using MT4 strategy tester the lot and Stoploss is changing. To keep it simple I'm using 1 lot and 1 pip for testing. Can someone tell me what is the reason it keeps changing. I'm uploading My EA with this thread for your review.0_1543256263864_newww (2).mq4
-
It is better to share a screenshot of your project or a shared link from the builder because the behavior of the EA remains in the code where it should take a look to get what is going on with the EA.
-
@josecortesllobat I have attached the screenshot. Please check if it helps.

-
Hi @a4ashan
I have been looking at your EA's project

You are using a Cross Width = 5, what are you expecting about that? As it is, the condition is evaluated from the current bar to the 5th backward.
There is not any Candel ID set.
SL is set to 1pips as a price fraction. This means that the SL Level will be placed at OpenPrice+/-0.0001 that it seems to be too short. You have warnings about that at Journal

And your trade is closed almost at the same time when opens because hits the SL allowing to open other trade


-
@josecortesllobat highly appriciate your feedback. I have taken the Crosswidth concept wrongly. I thought it will check for 5 future candles. Anyways I'll disable it and I'll try the price fraction settings you mentioned. And yes it keeps opening trades, I'll try to specify more the functions after the core issues are rectified.
Thank you for spending your time on this.
-
Hi @josecortesllobat I have tried the points you mentioned. But still the result is same. SL and Lot is different from what i define.
-
Could you detail which is your trading strategy?