Page 1 of 1

MAStopLossStrategy

PostPosted: Thu May 17, 2018 4:47 am
by Apprentice
MAStopLossStrategy.lua
(8.32 KiB) Downloaded 704 times

Based on the request.
viewtopic.php?f=27&t=66116

Short Trade
Close trade X pips in profit
On Price /MA CrossOver

Vice versa for Long

Re: MAStopLossStrategy

PostPosted: Fri May 18, 2018 4:19 am
by alienmole
Hi Thanks

However the strategy is not performing as intended. Currently it exits a trade when price crosses the 10 MA in the direction price is moving.

eg, at the moment if you are short and price is above the 10SMA and goes below it by the minimum amount, say 10 pips, then it exits.

What should happen is you are wanting an opposing bar type for the exit when the price is a certain amount of pips in profit, using the example of a short trade that would be a bar where the close is above the open, ie an "UP" Bar closing over the 10 MA and the opposite if you were Long.

Thanks

Re: MAStopLossStrategy

PostPosted: Fri May 18, 2018 5:22 am
by Apprentice
Try it now.

Re: MAStopLossStrategy

PostPosted: Fri May 18, 2018 5:33 am
by alienmole
Its exiting the trade on the touch of the MA, it should be a close of a bar back across the MA

Thanks

Re: MAStopLossStrategy

PostPosted: Mon May 21, 2018 6:07 am
by alienmole
Hi

I've attached an image which should hopefully help explain the rules

1212.png


Thanks