Experts: N-_Candles_v4 - page 2

 
284954 :
Hello! Very good! It fits me like a glove. If you could just insert Opening hours as I operate in a market limited by hours, I only do Day Trade. We can agree on the price and payment method. See attached Schedule parameters.

Added "working time". Waiting for N- Candles v5 to be published.

 

Good day! If possible, please make the following improvements in version 5:

- additional function - closing an order not by TP and SL (let's say EA checks N number of bars, opens BUY, checks if N+1 bar is better, then waits for N+2 bar, etc.... if the last bar is worse than the previous one - closes the order. SELL

- dynamic lot

- time trading

 
issah5:

***

- additional function - order closing not TP and SL (let's say EA checks N number of bars, opens BUY, checks if N+1 bar is better, then waits for N+2 bar, etc.... if the last bar is worse than the previous one - closes the order. Also SELL

***

I don't get it at all. Could you please elaborate?

 
Vladimir Karputov:

I don't get it at all. Could you elaborate?

Figuratively. The Expert Advisor checks 5 identical candles in a row. If all of them are the same, it opens SELL or BUY accordingly. When the next candle (the sixth candle) is formed, it checks it. If it is the same as when it was opened - we wait for the next candle, etc. If the candle is "bad" )) - forcibly close it. TP and SL are not needed in this case.

 
issah5:

Figuratively. The Expert Advisor checks 5 identical candles in a row. If all of them are the same, it opens SELL or BUY accordingly. When the next candle (sixth candle) is formed, it checks it. If it is the same as when it was opened - we wait for the next candle, etc. If the candle is "bad" )) - forcibly close. TP and SL are not needed in this case.

Now it is clear. The Expert Advisor itself initially does not take into account the type of candle (more precisely, there is no such input parameter, just if N candles are bearish, we open BUY, if N candles are bearish, we open SELL) - it counts only the number of identical candles. You propose to introduce a setting, let's call it "lousy sheep", which will take into account the type of these identical candles and as soon as a "bad" candle is encountered - automatically closes all positions.


Added.

I suggest such types of closing at meeting of "lousy sheep":

  • closing all positions
  • closing positions that are opposite to the "lousy sheep"
  • closing positions that have the same direction as the "lousy sheep"

 
Vladimir Karputov:

Now it is clear. The Expert Advisor itself initially does not take into account the type of candle (or rather there is no such input parameter, just if N candles are bearish, we open BUY, if N candles are bearish, we open SELL) - it counts only the number of identical candles. You suggest introducing a setting, let's call it "lousy sheep", which will take into account the type of these identical candlesticks and as soon as a "bad" candlestick is encountered, it will automatically close all positions.


Added.

I propose such types of closing at meeting "lousy sheep":

  • closing all positions
  • closing positions that are opposite to the "lousy sheep"
  • closing positions that have the same direction as the "lousy sheep"

Yes... that's exactly right. Thank you!