An advisor that would follow the rate on a five-minute chart with conditions after launch: - page 8
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
No, it's not. When you sold it, it seemed to be written correctly. You fix it first - only the purchase, as I wrote it, and check how it works.
Here is the whole code.....
Changed the code a little, made extern int Delta;
For example at StopLoss=49; TakeProfit=37 ; Delta=-32 the system give profit on minutes for 2007. The optimization is not over yet, and I will not wait for its completion. But in principle, the system may work. But we have to do some additional filters. Open time, number of orders opened at the same time, current volatility. Many parameters can be selected for optimization. But whether the system will work in the future is a complicated question.
How to do that? :))))
My idea of this EA is to make profits on pullbacks....
In my research on the pound, it always rolls back 5-15 pips on sharp jumps, both down and up..... I have a t/r of only 3 pips. Haven't caught an s/l by hand yet
Buy: a new candle opens and the price goes up - i.e. the buy price should exceed the open price by Delta=30.
i.e. if (Ask - iOpen(NULL,0,0)>=Delta*Point) is the best !
Now reason in the same way for a Sell.
A new candle opens and the price goes down. And we sell, if the open price of the candle is 30 pips higher than the sell price
if ( iOpen(NULL,0,0)- Bid >=Delta*Point)
Here's the whole code.....
Changed the code a bit, made extern int Delta;
And the delta here, of course, needs to be in external parameters....
Here's the whole code.....
Changed the code a bit, made extern int Delta;
And the delta here, of course, needs to be in external parameters....
That's what I wrote. I only need to select the types of orders to be set as an option. In one case limiters, in the other - stops. And you should select the parameters. But this will be a correction for the history.
Buy: a new candle opens and the price goes up - i.e. the buy price should exceed the open price by Delta=30.
i.e. if (Ask - iOpen(NULL,0,0)>=Delta*Point) is the best !
Now reason in the same way for a Sell.
A new candle opens and the price goes down. And we sell, if the open price of the candle is more than the sell price by 30 pips
if ( iOpen(NULL,0,0)- Bid >=Delta*Point)
Not good, Open, Slose, High, Low are based on Bid, and comparing one case with Bid and the other with Ask would be asymmetrical.
(Fucking theatre)))) It turns out I forgot the minus))) It's good that there's an eye-opener here).