OPEN-SOURCE SCRIPT

Robot WhiteBox ShiftMA

Updated
This script of strategy is necessary for testing of parameters of the WhiteBox TradingBot.

Strategy

The blue line is SMA.
The lime line = SMA - the shift parameter (%).
Red line = SMA + shift parameter (%).

Strategy uses limit orders. For opening of positions and for closing of positions.

If the price is lower than the lime line - opens a long position.
If the price is higher than the red line - opens a short position.
The position is closed on the blue line (SMA). Long and short.
Release Notes
+ interface
Release Notes
+ Very dangerous checkbox. Only profit.
Release Notes
+ arrows
Release Notes
+ oc2 price source
+ pcma price source
Release Notes
+ checkbox X100000000
Release Notes
+mintick
Release Notes
+ exchange
Release Notes
+
Release Notes
+ alt. Timeframe
Release Notes
+ MA Type (EMA and VWMA)
Release Notes
+WMA +ALMA
Release Notes
+ color
Release Notes
+ close shift
Release Notes
+ cancel order
Release Notes
+ PineScript v4
Release Notes
+ MA Offset
Release Notes
-bug
Moving AveragesTrend Analysis

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer