NexusFi: Find Your Edge


Home Menu

 





Thinkscript to EasyLanguage


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one StockT8er with 13 posts (0 thanks)
    2. looks_two mntman with 7 posts (5 thanks)
    3. looks_3 markmanu with 4 posts (1 thanks)
    4. looks_4 kjhosken with 3 posts (0 thanks)
      Best Posters
    1. looks_one Skidboot with 1 thanks per post
    2. looks_two mntman with 0.7 thanks per post
    3. looks_3 madeinnyc with 0.5 thanks per post
    4. looks_4 markmanu with 0.3 thanks per post
    1. trending_up 24,296 views
    2. thumb_up 8 thanks given
    3. group 10 followers
    1. forum 33 posts
    2. attach_file 4 attachments




 
Search this Thread
  #31 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6

That makes since. I go the paint to work at the bottom just not on the chart. But don;t do any goo if don't work just looks pretty


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
World Cup Opens: USA at 45.5% Tonight as Markets Push Ba …
Prediction Markets & Event Contracts
Would a node-based workflow for automated trading be useful?
Traders Hideout
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
Strike Pause Holds, Oil Erases Monday Spike -- May CPI W …
Traders Hideout
The June 15 Resolution Trap: Irans Agreed Text Still Pri …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #32 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6

WOW Why do some people take the time to create a study or strategy that looks to the past or future, anyone can look at a past chart and pick the lows and highs to have bought at. and see what they could have made.


Reply With Quote
  #33 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6


OK I have a though, the above script does not really work to set up an accurate buy or sell. however it may help in another way. What if you use this script to activate another. Like when this is is the Buy or up momentum BullishPosture you trigger Buy and Sell Signals using the reg MACD and then when in the Sell or BearsihPosture you trigger Buy and Sell Signals using the RevMACD. Therefor catching both directions.
I'm not up on the code well enough and I can not find coding information to write coding to do this. Or maybe there's a better way to script Bull market and Bear markets to rev from MACD to RevMACD. and back again, as the market changes.
Example
Reg Avg[1] < Avg and Avg[2] < Avg[1]
Rev Avg[1] > Avg and Avg[2] > Avg[1]


Reply With Quote
  #34 (permalink)
 StockT8er 
ROY, Utah
 
Experience: Intermediate
Platform: TradeStation
Posts: 81 since Apr 2020
Thanks Given: 11
Thanks Received: 6

This is a simple MACD Histogram for ToS. Main difference between it and TradeStations is the multi-colors
I've tried to convert, not sure how to do the multi-color portion


declare lower;

input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input averageType = AverageType.EXPONENTIAL;
input showBreakoutSignals = no;

plot Diff = MACD(fastLength, slowLength, MACDLength, averageType).Diff;
plot UpSignal = if Diff crosses above 0 then 0 else Double.NaN;
plot DownSignal = if Diff crosses below 0 then 0 else Double.NaN;

UpSignal.SetHiding(!showBreakoutSignals);
DownSignal.SetHiding(!showBreakoutSignals);

Diff.SetDefaultColor(GetColor(5));
Diff.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Diff.SetLineWeight(3);
Diff.DefineColor("Positive and Up", Color.GREEN);
Diff.DefineColor("Positive and Down", Color.DARK_GREEN);
Diff.DefineColor("Negative and Down", Color.RED);
Diff.DefineColor("Negative and Up", Color.DARK_RED);
Diff.AssignValueColor(if Diff >= 0 then if Diff > Diff[1] then Diff.color("Positive and Up") else Diff.color("Positive and Down") else if Diff < Diff[1] then Diff.color("Negative and Down") else Diff.color("Negative and Up"));
UpSignal.SetDefaultColor(Color.UPTICK);
UpSignal.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
DownSignal.SetDefaultColor(Color.DOWNTICK);
DownSignal.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);


Attached Thumbnails
Click image for larger version

Name:	Screenshot 2020-09-27 095402.png
Views:	216
Size:	6.8 KB
ID:	305290  
Reply With Quote




Last Updated on September 27, 2020


© 2026 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 - Downloads - Top
no new posts