Who helps me in the construction of a very simple expert advisor
-
Hi, who helps me in the construction of a very simple expert advisor, the requirements to be met are the following:
opening (long or short) HH: MM
Size
Closure HH: MM
Profit in pips
stoploss in pips
I just need to test some crosses and understand if they are more profitable timeslots than others.
Thank you in advance -
@geitec I will help you. Do you have any intial fxDreema project to begin with? We'll review it together.
-
@l-andorrà this is a draft https://fxdreema.com/shared/vd6FI5wD
Thanks in advance. -
@geitec Ok. I do not fully understand those custom code parts, but I'm sure we can find fxDreema blocks to use instead. Can yuo please tell me what exact conditions are required for them? If I understand correctly you want to limit the trading days?
-
@geitec said in Who helps me in the construction of a very simple expert advisor:
I MUST BE ABLE TO ENTER THE FOLLOWING INPUTS:
open trade hours and minutes
Buy or Sell;
Size
take profit
stop loss
close trade hours and minutes
example
open a trade buy at 17:00 today and close it at 09:00 tomorrow by entering the size, the stop loss and the take profit
another example
open a trade sell at 10:00 today and close it at 12:00 again today I enter the size, take profit and stoploss.
Thanks in advance -
@geitec So if I understand correctly you want to insert different initial and final trading hours for the EA to trade. Right? That is very easy to do if the EA is to be removed from one day to the next one, but certainly more complex if it is supposed to be running all the time. Would you work with the first option?
-
@l-andorrà Yes, I work wiht the first option , tank you
-
@geitec Then here you have an example for buys only. Obviously, you can use one for buys and another one for sells.
-
@l-andorrà Thanks for your help, the expert in real mode works correctly, it just needs to be recharged every day otherwise after the first operation it doesn't work anymore.
While in tester strategy it doesn't work, it opens and closes only once.
is it possible to remove these anomalies ??
Thank you in advance. -
@geitec Yes, you can. But then you need to create a specirfic structure to simulate the EA stoppong working from one day to the next one. Basically, you need to create a fully automatic EA to backtest it.