NexusFi: Find Your Edge


Home Menu

 





ONE ON ONE for think or swim ENJOY


Discussion in ThinkOrSwim

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




 
Search this Thread

ONE ON ONE for think or swim ENJOY

  #1 (permalink)
alagrande
glendale ca usa
 
Posts: 97 since Sep 2017
Thanks Given: 11
Thanks Received: 88

input price = close;
input length = 9;
#ONE ON ONE
input averageType = AverageType.SIMPLE;
DECLARE LOWER;

#def agg = AggregationPeriod.two_MIN;
#(period = agg)

#SMA2
plot SMA2 = MovingAverage(averageType, price, 2) - MovingAverage(averageType, price, 6);
SMA2.SetLineWeight(5);#5
SMA2.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);

#orange
SMA2.ASSignValueColor(IF SMA2 > 0 THEN CREATECOLOR(0, 200, 80) else if SMA2 < 0 THEN CREATECOLOR(240, 100, 50) else color.gray);

#SMA
plot SMA = MovingAverage(averageType, price, 2) - MovingAverage(averageType, price, 12);
SMA.SetLineWeight(5);#1, 3
SMA.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
#green on top
SMA.ASSignValueColor(IF SMA > 0 THEN CREATECOLOR(0, 240, 160) else if SMA < 0 THEN COLOR.PINK else color.gray);

#THICK
plot SMA3 = MovingAverage(averageType, price, 2) - MovingAverage(averageType, price, 24);
SMA3.SetLineWeight(5);#1
SMA3.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);

SMA3.ASSignValueColor(IF SMA3 > SMA3[1] THEN COLOR.GREEN else if SMA3 < SMA3[1] THEN COLOR.RED else color.gray);
#SMA3.ASSignValueColor(IF SMA3 > 0 THEN COLOR.CYAN else if SMA3 < 0 THEN COLOR.PINK else color.gray);

#orange sma2, red sma, pink sma3

AddLabel(yes, (" "), IF sma2> sma and sma2 > sma3 and sma2> sma and sma2 > sma3 and sma>sma3 and sma>sma[1] and sma2>sma2[1] and sma3>sma3[1] then color.green else if sma2< sma and sma2 < sma3 and sma2< sma and sma2 < sma3 and sma<sma3 and sma<sma[1] and sma2<sma2[1] and sma3<sma3[1] then color.red else color.gray);

AddLabel(yes, (" "), IF sma2> sma and sma2 > sma3 and sma2> sma and sma2 > sma3 and sma3>sma then color.red else if sma2< sma and sma2 < sma3 and sma2< sma and sma2 < sma3 and sma3<sma then color.green else color.gray);

#end code

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
36 thanks
Tao te Trade: way of the WLD
24 thanks
Spoo-nalysis ES e-mini futures S&P 500
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
16 thanks
  #2 (permalink)
 
barabas's Avatar
 barabas 
Chicago IL USA
 
Experience: Intermediate
Platform: Tradestation
Broker: Tradestation
Trading: ES,NQ, CL
Posts: 111 since Feb 2019
Thanks Given: 105
Thanks Received: 173


alagrande View Post
input price = close;
input length = 9;
#ONE ON ONE
input averageType = AverageType.SIMPLE;
DECLARE LOWER;

#def agg = AggregationPeriod.two_MIN;
#(period = agg)

#SMA2
plot SMA2 = MovingAverage(averageType, price, 2) - MovingAverage(averageType, price, 6);
SMA2.SetLineWeight(5);#5
SMA2.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);

#orange
SMA2.ASSignValueColor(IF SMA2 > 0 THEN CREATECOLOR(0, 200, 80) else if SMA2 < 0 THEN CREATECOLOR(240, 100, 50) else color.gray);

#SMA
plot SMA = MovingAverage(averageType, price, 2) - MovingAverage(averageType, price, 12);
SMA.SetLineWeight(5);#1, 3
SMA.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
#green on top
SMA.ASSignValueColor(IF SMA > 0 THEN CREATECOLOR(0, 240, 160) else if SMA < 0 THEN COLOR.PINK else color.gray);

#THICK
plot SMA3 = MovingAverage(averageType, price, 2) - MovingAverage(averageType, price, 24);
SMA3.SetLineWeight(5);#1
SMA3.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);

SMA3.ASSignValueColor(IF SMA3 > SMA3[1] THEN COLOR.GREEN else if SMA3 < SMA3[1] THEN COLOR.RED else color.gray);
#SMA3.ASSignValueColor(IF SMA3 > 0 THEN COLOR.CYAN else if SMA3 < 0 THEN COLOR.PINK else color.gray);

#orange sma2, red sma, pink sma3

AddLabel(yes, (" "), IF sma2> sma and sma2 > sma3 and sma2> sma and sma2 > sma3 and sma>sma3 and sma>sma[1] and sma2>sma2[1] and sma3>sma3[1] then color.green else if sma2< sma and sma2 < sma3 and sma2< sma and sma2 < sma3 and sma<sma3 and sma<sma[1] and sma2<sma2[1] and sma3<sma3[1] then color.red else color.gray);

AddLabel(yes, (" "), IF sma2> sma and sma2 > sma3 and sma2> sma and sma2 > sma3 and sma3>sma then color.red else if sma2< sma and sma2 < sma3 and sma2< sma and sma2 < sma3 and sma3<sma then color.green else color.gray);

#end code


What kind of strategies is this?

Reply With Quote




Last Updated on April 3, 2019


© 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