Experts: Tunnel gen4

 

Tunnel gen4:

Market position grid. Martingale.

Tunnel gen4

Author: Vladimir Karputov

 
Thank you. This is very simple and easy to follow. I have seen a lot of your other examples and all are easy to understand and follow, perfect for newcomers to MQL5 coding.
 

Hello Mr Vladimir

This expert advisor is very promising, but I have a request to ask you, please, will it be possible to place an option of only buying or selling only up or down from the initial buy and sell positions, number of open positions on each candle and close profit when it reaches a certain value predefined by the trader. I would really appreciate this update.

 
Tiago Martins :

Hello Mr Vladimir

This expert advisor is very promising, but I have a request to ask you, please, will it be possible to place an option of only buying or selling only up or down from the initial buy and sell positions, number of open positions on each candle and close profit when it reaches a certain value predefined by the trader. I would really appreciate this update.

I'll put it in my plan.

 
Tiago Martins :

***, it will be possible to place an option of only buying or selling only up or down from the initial buy and sell position*.

No. In this strategy, you cannot limit: "or only BUY", "or only SELL"

 
Vladimir Karputov:

No. In this strategy, you can't limit yourself: "or only BUY", "or only SELL"

Okay, thanks my friend.

 
Tiago Martins :

Okay, thanks my friend.

I've changed my mind: now, in the strategy, you can set the restriction "only buy" or "only sell" - but in this case, you'll have to enter the parameter "Max Loss, on cash deposit". This is necessary in order not to get a suspended position.

 
Tiago Martins :

Hello Mr Vladimir

This expert advisor is very promising, but I have a request to ask you, please, will it be possible to place an option of only buying or selling only up or down from the initial buy and sell positions, number of open positions on each candle and close profit when it reaches a certain value predefined by the trader. I would really appreciate this update.

Tunnelling gen4 2 :

Principle of operation

Modified version of the gen4 tunnel 2

Differences from the gen4 tunnel:

  • new parameter ' Max Loss, on cash deposit ' - maximum loss. When this value is reached, all positions will be closed
  • new parameter ' Target Profit, in cash deposit ' - target profit. When this value is reached, all positions will be closed
  • new parameter ' Maximum positions on bar ' - limiting the number of open positions on a bar (does not work on the first open, when there are no positions on the market)
  • new parameter ' Search for signals, in seconds ' - pause in seconds between searches for trading signals. General rule: if the interval is set to less than "10" - this means ONLY at the moment a new bar is born, if the interval is set to exactly or more than "10" - this means working every "N" seconds.
  • new parameter ' Trading mode: ' - type of trading allowed. It can be " Only buy positions allowed ", " Only buy positions allowed " and " Only buy and sell positions allowed ".

Tunnel gen4 2

 
Vladimir Karputov:

Tunnel gen4 2 :

Operating principle

Modified version of the gen4 2 tunnel

Differences from the gen4 tunnel:

  • new parameter ' Max Loss, on cash deposit ' - maximum loss. When this value is reached, all positions will be closed
  • new parameter ' Target Profit, in cash deposit ' - target profit. When this value is reached, all positions will be closed
  • new parameter ' Maximum positions on bar ' - limiting the number of open positions on a bar (does not work on the first open, when there are no positions on the market)
  • new parameter ' Search for signals, in seconds ' - pause in seconds between searches for trading signals. General rule: if the interval is set to less than "10" - this means ONLY at the moment a new bar is born, if the interval is set to exactly or more than "10" - this means working every "N" seconds.
  • new parameter ' Trading mode: ' - type of trading allowed. It can be " Only buy positions allowed ", " Only buy positions allowed " and " Only buy and sell positions allowed ".

Hi Sir, thank you for the update, works awesome. Thank you. Best Regards

 

Is there any way to specify the % profit function he should be earning per month?

For example, he was earning 5% per month, this month he is no longer working!