Open Close Cross Strategy, WIP

FX:EURUSD   Euro / U.S. Dollar
A little work in progress, nothing really new here, just "simple" open-close cross trend trading strategy.. but of course with a dash of my own flavour.

So it got less simple..

You can use simple open/close series crossover, or use your preferred brand of MA instead.
needs a lot more tweaking before I actually go ahead and publish the script, but still fairly functional as-is.

Feel free to make the chart your own and have a play!..at your own risk.. and stuff..

Comment: ** A little bit more description **

The strategy simply places an appropriate order in the direction of the crossover/under of the open and close.

You can choose an MA type (and associated inputs) to plot the open and close series, and thus refine refine control a bit, or you can choose to just use the straight up open and close series data with no modification.

Further refinement on profit, loss and draw-down can be achieved by using and adjusting the trailing stop value, and the offset.

This script really is a Work In Progress - I can't stress that enough - I need to get more live data in order to refine it, and try and fix issues when using alternative resolution to current chart(s).

For the moment, either un-check the option to use alternative resolution, or simply match it to your chart.


I have a Buy signal on one bar two bars later I have a Sell signal and on the 3rd bar both prior signals are no longer there (using 1 hr chart). Am I missing something here? Strategy backtest gives great results but hard to take 2 trades and at the third bar just to see them all gone from chart.
+15 Reply
Can you add alerts to this on the signal?
+7 Reply
Hi, Jay, do you have this code? thanks
+5 Reply
Great work... Yes... it works very well
+1 Reply
Hi, great work... I can't figure out yet what's best time frame to use and what resolution to put on inputs?? Any suggestions??
Thanks again
+1 Reply
Hi Rogers,
It looks great! Can you adjust the alert function for sell/buy signals, which will be sent via SMS/Email to the receiver ? It would be then really helpful.
Thank you in advance and thank you very much for your hard works, it is really appreciated.


+1 Reply
How do we get our hands on it?
When using an alternative resolution (higher) the trade is initiated when the bar opens in the higher resolution not when it closes. The cross hasn't occurred in fact until the close in the higher resolution. The results are therefore meaningless, sorry.
In fact, it gives a clear direction on the charts be it long or short.
Indebted to you, Sir,
hi good work.can it work on stockschart??? and can you give me code ???
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out