Page 1 of 2

MA Cross Strategy

PostPosted: Wed Mar 22, 2017 6:59 am
by Apprentice
1.png

2.png

Long Trade
Price / MA CrossOver
Stop loss - low of candle
Limit/Stop would be equal to stop loss (1:1 risk to reward)

Vice versa for short.

MA Cross Strategy.lua
(23.58 KiB) Downloaded 1114 times

Re: MA Cross Strategy

PostPosted: Sun Jun 24, 2018 10:57 am
by aladin
Hi, is possible add a Limit and Stop pips value ?
There are only True / False options and don't close position.

Thanks

Re: MA Cross Strategy

PostPosted: Sat Aug 04, 2018 7:20 am
by Apprentice
Your request is added to the development list under Id Number 4215

Re: MA Cross Strategy

PostPosted: Mon Aug 06, 2018 9:09 am
by Apprentice
Try it now.

Re: MA Cross Strategy

PostPosted: Wed Jul 01, 2020 12:23 pm
by terminator2410
Dear Sir

Tested this strategy, opened positions according to conditions (both long and short), however, it placed no stop loss at the bottom of the signaling candlestick for long position, nor at the top of the signaling candlestick for short position. I had set Stop Order Type to "Auto" and Limit Order Type to "Do not set". Also, can you include to this strategy the coding for calculating the lots used as a percentage of the equity?

thank you

Re: MA Cross Strategy

PostPosted: Thu Jul 02, 2020 3:14 am
by Apprentice
Have you try "pips" stop option?

Re: MA Cross Strategy

PostPosted: Fri Jul 03, 2020 9:43 am
by terminator2410
I just did, this works fine, however this is what I am after. I want strategy to be placing stop losses at the low/high of the signaling candlestick automatically as per initial request instead of me having to do so manually.

Also, can you include the breakeven coding for this strategy? Both lots calculation & breakeven coding can be found in this strategy :

viewtopic.php?f=31&t=69284

Thank you

Re: MA Cross Strategy

PostPosted: Sat Jul 04, 2020 4:39 am
by Apprentice
Your request is added to the development list.
Development reference 1628.

Re: MA Cross Strategy

PostPosted: Mon Jul 06, 2020 2:04 pm
by Apprentice
MA Cross Strategy v3.lua
(134.13 KiB) Downloaded 369 times

Try this version.

Re: MA Cross Strategy

PostPosted: Tue Jul 07, 2020 7:55 am
by terminator2410
Hello

I tried high/low as stop loss, strategy did place some stop loss, however, I could not figure out the logic behind it (no high/low on my chart confirmed the stop loss logic). ATR stop loss placed no stop loss at all. Breakeven and partial close works fine. Again, stop loss placed at the bottom/high of the signaling candlestick when going long/short respectively not found.

Thank you