forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Forum

Forex Software, Forex Strategies, Expert Advisors Generator

You are not logged in. Please login or register.


Forex Forum → Expert Advisor Modifications → Add a trailing stop into EA portfolio

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 3

1 (edited by ChristianS 2018-01-03 19:17:38)

Topic: Add a trailing stop into EA portfolio

Hi, can someone help how and where I can add the trailing stop in the EA portfolio coding?

For example when EA is 50 pips in profit start trailing stop 30 pips below the actually price.

Maybe in next time it is automatically included when we save the EA portfolio.

Re: Add a trailing stop into EA portfolio

Adding a trailing stop will change the strategy behavior and the trading will not correspond to the backtest. This may reduce the strategy performance.

3 (edited by ChristianS 2018-01-05 13:49:27)

Re: Add a trailing stop into EA portfolio

OK I understand your concerns. But I will test the EA portfolio with a trailing stop like that if I can get a better performance or not, it will be really helpful, but of course on my own risk:

//---TrailingStop     ----//
static input stringTSName1     = "Trailing Stop Limit"; 
static input bool   UseTrailingStop    = True; // Use Trailing Stop, True (Yes) or False (Not)
static input double TrailingStop       = 35.0; // If Use Trailing Stop True, default value 35
static input double TrailingStopStep   = 5.0;  // Input Trailing Stop Step Value (default 5.0)

Thanks for helping anyone..

Posts: 3

Pages 1

You must login or register to post a reply

Forex Forum → Expert Advisor Modifications → Add a trailing stop into EA portfolio

Similar topics in this forum


Generated in 0.009 seconds (64% PHP - 36% DB) with 12 queries