Moving-average based stop order
Posted: Fri Sep 17, 2010 11:06 am
A new version of this strategy exists. Please check it first!
The strategy sets the stop order on the chosen trade using moving average value.
You can apply any of the existing moving average indicator of any price (open, close, high, low, median, typical or weighted) of any time frame and choose the interval in minutes how often the stop order shall be changed.
The strategy starts on the first tick after it's applied, loads the data and starts to watch moving average value. In case moving value value is changed and the stop is changed more than (chosen interval) ago, the new stop value is set. If there is no stop order - the new stop order is created.
The strategy uses the most recent bar of the chosen timeframe, not the already closed bar.
In case moving average is on the wrong side (above the price for a long position or below the price for a short position) the strategy does not set or change the order.
The strategy works for non-FIFO (aka U.S. accounts) only.
Note. The strategy works on 091010 version of the Trading Station only. Do not try to use it on 082610 or older version!!!. To update your trading station up to 091010 version, please, download the most recent installation package from your broker's site download page and install it. FXCM UK download page is http://www.fxcm.co.uk/forex-software-download.jsp
Screenshot:
Download:
p.s. The setting stop order by true timer (i.e. every one minute exact, without waiting for a tick) will be possible in the upcoming Trading Station release.
The Strategy was revised and updated on December 10, 2018.
The strategy sets the stop order on the chosen trade using moving average value.
You can apply any of the existing moving average indicator of any price (open, close, high, low, median, typical or weighted) of any time frame and choose the interval in minutes how often the stop order shall be changed.
The strategy starts on the first tick after it's applied, loads the data and starts to watch moving average value. In case moving value value is changed and the stop is changed more than (chosen interval) ago, the new stop value is set. If there is no stop order - the new stop order is created.
The strategy uses the most recent bar of the chosen timeframe, not the already closed bar.
In case moving average is on the wrong side (above the price for a long position or below the price for a short position) the strategy does not set or change the order.
The strategy works for non-FIFO (aka U.S. accounts) only.
Note. The strategy works on 091010 version of the Trading Station only. Do not try to use it on 082610 or older version!!!. To update your trading station up to 091010 version, please, download the most recent installation package from your broker's site download page and install it. FXCM UK download page is http://www.fxcm.co.uk/forex-software-download.jsp
Screenshot:
Download:
p.s. The setting stop order by true timer (i.e. every one minute exact, without waiting for a tick) will be possible in the upcoming Trading Station release.
The Strategy was revised and updated on December 10, 2018.