Two MA Cross Strategy

Strategies are published here.

Moderator: admin

Two MA Cross Strategy

Postby Apprentice » Wed May 07, 2014 3:39 am

MVA.png


Open Long
Short/Long MA CrossOver

Open Short
Short/Long MA CrossUnder

Open Short
Two MA Cross Strategy.lua
Two MA Cross Strategy, 2 MA cross, MA Cross
(22.35 KiB) Downloaded 1642 times

Vama (if used can be found here)
viewtopic.php?f=17&t=2349&hilit=vama
NonLagMA (if used can be found here)
viewtopic.php?f=17&t=2231&p=5455&hilit=NONLAGMA#p5455
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Two MA Cross Strategy

Postby JOKER83 » Tue Mar 03, 2015 7:20 pm

CAN YOU MAKE
CLOSE OPTION ON/OFF
JOKER83
FXCodeBase: Initiate
 
Posts: 113
Joined: Fri Jul 11, 2014 7:44 am

Re: Two MA Cross Strategy

Postby Apprentice » Wed Mar 04, 2015 3:41 pm

Can you elaborate, this strategy do not have any advanced Exit logic.
Only close on the opposite.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Two MA Cross Strategy

Postby JOKER83 » Thu Mar 05, 2015 6:34 am

I HAVE SELL TRADE
BUY SIGNAL -CLOSE MY TRADE
THIS ON/OFF

AND CAN YOU MAKE TWO EMA TO CONFIRM
BUT BIGGER TIMEFRAME
ONE EMA
TIMEFRAME
CLOSE TRADE ON/OFF

TWO EMA
TIMEFRAME
CLOSE TRADE ON/OFF
JOKER83
FXCodeBase: Initiate
 
Posts: 113
Joined: Fri Jul 11, 2014 7:44 am

Two MA Cross Strategy

Postby akram66 » Sat Mar 14, 2015 2:37 am

AND CAN YOU MAKE TWO EMA TO CONFIRM
BUT BIGGER TIMEFRAME
akram66
 
Posts: 2
Joined: Sat Mar 14, 2015 2:22 am

Re: Two MA Cross Strategy

Postby Apprentice » Mon Mar 16, 2015 3:23 am

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

Re: Two MA Cross Strategy

Postby Fafountrader » Wed Aug 03, 2016 4:24 pm

I get the following messages when attempting to load - attempt to index global 'strategy' (a nil value) and the parameter with the specified id already exists. Please help.
Fafountrader
 
Posts: 14
Joined: Mon Feb 09, 2015 2:09 pm


Re: Two MA Cross Strategy

Postby Fafountrader » Wed Aug 10, 2016 11:14 am

works thanks apprendice
Fafountrader
 
Posts: 14
Joined: Mon Feb 09, 2015 2:09 pm

Re: Two MA Cross Strategy

Postby Pied Pipper » Fri Oct 21, 2016 3:25 pm

Dear Apprentice,

I am new to Forex and Lua scripting.

When I test the attached strategy the entry order is always created 2 or 3 candles after the cross took place. Why is that and is there a way to create the entry order as soon a the cross happened (or a set time later to confirm the cross did in fact happen)? I am also playing with the following exit strategy idea: wait for the fast MA to flatten out (iow see a reversal in slope) and then exit. Will you be able to do that? I have played with your slope strategy as well, but the 'sensitivity' seems to highas the system enters and exits multiple orders along a fairly straight line.

I am looking forward to your reply in this matter,
Thanks,
Pied Pipper
 
Posts: 1
Joined: Fri Oct 21, 2016 3:11 pm

Next

Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 12 guests