Simple Tradestation code into Wave59 - Help
Posted: Tue Apr 21, 2020 9:17 pm
Hi to all, its been a few years since I last posted, but wanted to come back and checkout W59 again.....
I hoping someone can convert these two Tradestation scripts into Qscript, so I can move my trading back to W59..
I wish I could code...
These are standard indicators, but the script below plots on the bar, rather than the traditional wave at the bottom of the chart.... I find it easier to trade.
Big thanks for your help...
INDICATOR: “ST Low ADX”
This simple indicator paints bars if the ADX falls below a threshold. ADX is calculated of the last X number of bars.
The defaults used here are: White if ADX falls below 15, calculated over the last 14 bars.
------------------------------------------------------------------------------------------
If CurrentBar > 1 Then Begin
if ADX(14) <= 15
then PlotPaintBar (High, Low, Open, Close, "ADX", white);
End;
------------------------------------------------------------------------------------------
INDICATOR: “ST ATR Low”
This indicator paints bars if the bar is at least 25% smaller than the ATR of the last X number of bars.
The defaults used here are: BLUE if bar is at least 25% smaller than the ATR of the last 14 bars.
--------------------------------------------------------------------------------------------
inputs: ATRLength( 14 ), SmallColour(red), SmallFactor(0.75) ;
variables: ATR( 0 ) ;
ATR = AvgTrueRange( ATRLength ) ;
if TrueRange<=SmallFactor*ATR then PlotPaintBar(High, Low, Open, Close,
"ATR", SmallColour);
---------------------------------------------------------------------------------------------
I hoping someone can convert these two Tradestation scripts into Qscript, so I can move my trading back to W59..
I wish I could code...
These are standard indicators, but the script below plots on the bar, rather than the traditional wave at the bottom of the chart.... I find it easier to trade.
Big thanks for your help...
INDICATOR: “ST Low ADX”
This simple indicator paints bars if the ADX falls below a threshold. ADX is calculated of the last X number of bars.
The defaults used here are: White if ADX falls below 15, calculated over the last 14 bars.
------------------------------------------------------------------------------------------
If CurrentBar > 1 Then Begin
if ADX(14) <= 15
then PlotPaintBar (High, Low, Open, Close, "ADX", white);
End;
------------------------------------------------------------------------------------------
INDICATOR: “ST ATR Low”
This indicator paints bars if the bar is at least 25% smaller than the ATR of the last X number of bars.
The defaults used here are: BLUE if bar is at least 25% smaller than the ATR of the last 14 bars.
--------------------------------------------------------------------------------------------
inputs: ATRLength( 14 ), SmallColour(red), SmallFactor(0.75) ;
variables: ATR( 0 ) ;
ATR = AvgTrueRange( ATRLength ) ;
if TrueRange<=SmallFactor*ATR then PlotPaintBar(High, Low, Open, Close,
"ATR", SmallColour);
---------------------------------------------------------------------------------------------