Experts: N-_Candles_v7

 

N-_Candles_v7:

The Expert Advisor searches for N identical candlesticks in a row. It buys on bullish candlesticks and sells on bearish ones. The account type is taken into consideration, i.e., whether it is a netting or a hedging one.


Author: Vladimir Karputov

 

Thank you. Vladimir.

But for some reason it doesn't close on money profit.

Vladimir, you can remove the closing on a lousy sheep.

In this case, this function becomes unnecessary.

 
narkad1212:

Thank you. Vladimir.

But for some reason it doesn't close on money profit.

***

Thanks for the comment - fixed. Wait for the new version 7.001 to be reuploaded.


narkad1212:

***

Vladimir, you can remove the lousy sheep closure.

In this case this feature becomes redundant.

Unfortunately it is impossible to disable everything that was added earlier.

 
Vladimir Karputov:

Thanks for the comment - fixed it. Wait for the new version 7.001 to be reuploaded.


Unfortunately it is impossible to disable everything that was added earlier.

Thank you, Vladimir.

Everything works.

Great principle - open positions by N rjkbxtcnde identical candles. I have been looking for something like this for a long time.

I have changed your Expert Advisor with the help of other Expert Advisors.

1) I open not on the trend of candlesticks, but against the trend (on the pullback movement).

2) During trading I delete paired positions so that a large number of orders do not accumulate. Even if they are minus,

3) I close all orders according to the total money profit.


If you think of modernising your Expert Advisor in this way, you will see how beautifully it works when profitable trades are collected.

 
narkad1212:

Thank you, Vladimir.

***

2) During trading, I delete paired positions so that a large number of orders do not accumulate. Even if they are minus,

***

How do you select pairs? Is it just one BUY and the other SELL? Or BUY and SELL but with the same lots? Or BUY and SELL with a total profit of about zero? Or ... ?

 
Vladimir Karputov:

How do you select pairs? Just one BUY and the other SELL? Or BUY and SELL but with the same lots? Or BUY and SELL with a total profit of about zero? Or ... ?

The lots are all the same.

Simply if BUY is opened and SELL orders are already open, then one SELL and BUY order are closed each. The other SELLs remain waiting for the total profit or for their opposite BUY pair.

Ideally, of course, to close the most profitable SELL. Here you should try, because then the total profit will be in danger of never being reached. :)))

 
These line of advisors I think will not be modernised, but something new can be invented - I collect ideas in the Weekend Evening.
 
Vladimir Karputov:
I think these EAs will not be modernised, but something new can be invented - I will collect ideas in the Weekend Evening

Yes, I think it's a different EA in terms of meaning.

I didn't know about Weekend Night. Should I move this topic to this thread?

 
Automated-Trading :

N-_Candles_v7:

Author: Vladimir Karputov


Is it possible to close an open position only with Stop Loss or Take Profit and not vice versa?
 
alexandre gonçalves:

Is it possible to close an open position with only stop loss or take profit and not vice versa?

See input parameters - set the required parameter equal to zero and thus the parameter will be switched off:

input ushort      InpTakeProfit  = 50;          // Take Profit ("0" -> not Take Profit) (in pips)
input ushort      InpStopLoss    = 50;          // Stop Loss ("0" -> not Stop Loss) (in pips)
 
Excellent, but trailing stop trailing step does not work while the candle is open. They do not work in real time. Is this right ? ...thankful