SwingTrading Pro Strategy Long Only Example 9p05f1

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

defparam cumulateorders=false

sensibility=2 //change here the sensibility of the trend detection of SwingTrading


Pro indicator

trend, swingline = CALL "SwingTrading Pro [gen]"[sensibility, 0, 3, 0, 1](close)

//example: open an order when trend switch to bullish (green)


if trend crosses over 0 and not longonmarket then
buy 1 contract at market
set stop price swingline //put the stoploss on the swingline
endif

//use the swingline as a trailing stoploss


if longonmarket then
set stop price swingline
endif

//these lines are useful when backtesting to visualize the trend (-1 = red ; 1 =
green)
//and the swing line on the price chart
//remove that lines if you want to autotrade with ProOrder
graphonprice swingline as "swing line"
graph trend as "trend direction"

You might also like