|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/21/2010 8:47:32 PM
Posts: 8,
Visits: 34
|
|
Hi all,
can anyone write the strategy of description given below?
On start : options to set timeframe,critical equity %,trader range.
On run : Opens a buy position if two green candles form and close the trade if two red candle form.
Opens a sell position if two red candles form one after another and close the trade when two green candles form.
its a simple script and its much like the MACD script.But MACD seems a bit slow for me..
Any help is much appreciated 
Cheers
|
|
|
|
|
Supreme Being
      
Group: Forum Members
Last Login: 1/27/2012 12:53:25 PM
Posts: 201,
Visits: 295
|
|
Hi, forexgeek!
Here is the strategy that you asked for.
Enjoy!
Best regards!
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/21/2010 8:47:32 PM
Posts: 8,
Visits: 34
|
|
Thanks for the script,
Tried it,was a failure i guess i have to go slower than just two candles..so i have come up with a more complicated one 
i hope you can help me with this one,and also that it works as i intend it to ..
Here is how it should work.
There should be three Moving averages,the timing can be set by the user.for eg: say it is 5 period,14,and 22.
Buy when all MA's are bullish for a minimum of 4 candles.Closes the trade when 14 period MA cross over 22 period one.And the 5 period one is distinctly across the 22 period (say 4 candles)
Sell when all MA's are beaish for a minimum of 4 candles.Closes the trade when 14 perios MA cross over 22 period one.And the 5 period one is distinctly across the 22 period(4 candles)
i know scripting this much is a headache by itself,but if strategy can take also consider RSI,it would be perfect 
Say not to initiate a buy signal even if above conditions are satisfied along with a prolonged overbought signal from RSI ,and vice versa.
Before getting into the trouble of making this one,i would like to let you know that i will pay anyone who gives me this script,if it worked as i intent it to.
Not trying to bribe you Just appreciating the help.
cheers
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 11/22/2011 2:28:05 AM
Posts: 9,
Visits: 20
|
|
Hi, I automate "Three MA's" strategy.
Please test my code.
Lesya Makhova
|
|
|
|