MA Cross Strategy

Strategies are published here.

Moderator: admin

MA Cross Strategy

Postby Apprentice » Wed Mar 22, 2017 6:59 am

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 1112 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Cross Strategy

Postby aladin » Sun Jun 24, 2018 10:57 am

Hi, is possible add a Limit and Stop pips value ?
There are only True / False options and don't close position.

Thanks
aladin
 
Posts: 13
Joined: Sun Jul 23, 2017 9:04 pm
Location: Switzerland

Re: MA Cross Strategy

Postby Apprentice » Sat Aug 04, 2018 7:20 am

Your request is added to the development list under Id Number 4215
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Re: MA Cross Strategy

Postby terminator2410 » Wed Jul 01, 2020 12:23 pm

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
terminator2410
 
Posts: 20
Joined: Mon May 25, 2020 7:13 am

Re: MA Cross Strategy

Postby Apprentice » Thu Jul 02, 2020 3:14 am

Have you try "pips" stop option?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Cross Strategy

Postby terminator2410 » Fri Jul 03, 2020 9:43 am

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
terminator2410
 
Posts: 20
Joined: Mon May 25, 2020 7:13 am

Re: MA Cross Strategy

Postby Apprentice » Sat Jul 04, 2020 4:39 am

Your request is added to the development list.
Development reference 1628.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Cross Strategy

Postby Apprentice » Mon Jul 06, 2020 2:04 pm

MA Cross Strategy v3.lua
(134.13 KiB) Downloaded 366 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: MA Cross Strategy

Postby terminator2410 » Tue Jul 07, 2020 7:55 am

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
terminator2410
 
Posts: 20
Joined: Mon May 25, 2020 7:13 am

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 16 guests