Need help to write a simple strategy Expand / Collapse
Author
Message
Posted 8/19/2010 9:07:38 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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





Post #1864
Posted 8/31/2010 7:28:56 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme 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!

  Post Attachments 
Two_candle_form.act (128 views, 3.55 KB)
Post #1920
Posted 8/31/2010 3:48:23 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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
Post #1921
Posted 11/24/2010 8:47:43 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum 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

  Post Attachments 
ThreeMA.act (66 views, 4.51 KB)
Post #2371
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin

All times are GMT -5:00, Time now is 8:31pm


© 2009 Actforex.com Terms of Use