NexusFi: Find Your Edge


Home Menu

 





Price Action Swing conversion?


Discussion in ThinkOrSwim

Updated
    1. trending_up 3,966 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 1 attachments




 
Search this Thread

Price Action Swing conversion?

  #1 (permalink)
 Tradarr 
Atlanta Ga. USA
 
Experience: Intermediate
Platform: NT8,ThinkorSwim,
Trading: Grains
Posts: 340 since Mar 2017
Thanks Given: 86
Thanks Received: 88

Has anyone attempted to converted PAS to Thinkscript. Has anyone converted the PAS signals for double top, double bottom, higher low, higher high, lower low, or lower high to Thinkscript? I'm sure a PAS conversion for elite members only would be greatly appreciated.

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
How to apply profiles
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #2 (permalink)
 JayC 
San Diego, CA
 
Experience: Beginner
Platform: TOS, Sierra
Trading: Emini ES, Crude CL
Posts: 55 since Mar 2019
Thanks Given: 9
Thanks Received: 43

No where near a full conversion of the features PAS offers, but this is a small script I use to find recent highs and lows.

Jay

 
Code
input lookBack = 10;
input lookAhead = 5;

def isHigh = high >= Highest(high[1], lookBack) and high >= Highest(high[-lookAhead], lookBack);
def highValue = if BarNumber() < lookBack then Double.NaN else if isHigh then high else highValue[1];
AddChartBubble(isHigh and highValue != highValue[1], high, if highValue > highValue[1] then "HH" else "LH", Color.CYAN, yes);

def isLow = low <= Lowest(low[1], lookBack) and low <= Lowest(low[-lookAhead], lookBack);
def lowValue = if BarNumber() < lookBack then Double.NaN else if isLow then low else lowValue[1];
AddChartBubble(isLow and lowValue != lowValue[1], low, if lowValue > lowValue[1] then "HL" else "LL", Color.LIGHT_RED, no);

Reply With Quote
Thanked by:
  #3 (permalink)
 Tradarr 
Atlanta Ga. USA
 
Experience: Intermediate
Platform: NT8,ThinkorSwim,
Trading: Grains
Posts: 340 since Mar 2017
Thanks Given: 86
Thanks Received: 88



JayC View Post
No where near a full conversion of the features PAS offers, but this is a small script I use to find recent highs and lows.

Jay

 
Code
input lookBack = 10;
input lookAhead = 5;

def isHigh = high >= Highest(high[1], lookBack) and high >= Highest(high[-lookAhead], lookBack);
def highValue = if BarNumber() < lookBack then Double.NaN else if isHigh then high else highValue[1];
AddChartBubble(isHigh and highValue != highValue[1], high, if highValue > highValue[1] then "HH" else "LH", Color.CYAN, yes);

def isLow = low <= Lowest(low[1], lookBack) and low <= Lowest(low[-lookAhead], lookBack);
def lowValue = if BarNumber() < lookBack then Double.NaN else if isLow then low else lowValue[1];
AddChartBubble(isLow and lowValue != lowValue[1], low, if lowValue > lowValue[1] then "HL" else "LL", Color.LIGHT_RED, no);




ZigZagPercentWith_HL__LH_Plots


Trying to get added code to work like/with zigzag percent?

input lookBack = 10;
input lookAhead = 5;

def isHigh = high >= Highest(high[1], lookBack) and high >= Highest(high[-lookAhead], lookBack);
def highValue = if BarNumber() < lookBack then Double.NaN else if isHigh then high else highValue[1];
AddChartBubble(isHigh and highValue != highValue[1], high, if highValue > highValue[1] then "HH" else "LH", Color.CYAN, yes);

#Added By DW
def LH = highValue < highValue[1];
plot LowerHigh = LH;



def isLow = low <= Lowest(low[1], lookBack) and low <= Lowest(low[-lookAhead], lookBack);
def lowValue = if BarNumber() < lookBack then Double.NaN else if isLow then low else lowValue[1];
AddChartBubble(isLow and lowValue != lowValue[1], low, if lowValue > lowValue[1] then "HL" else "LL", Color.LIGHT_RED, no);

#Added By DW
def HL = lowValue > lowValue[1];
plot HigherLow = HL;

Started this thread Reply With Quote




Last Updated on December 21, 2021


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts