Convert ToS code to Sierra - futures io
futures io futures trading

Convert ToS code to Sierra

Discussion in Sierra Chart

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

Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

Convert ToS code to Sierra

(login for full post details)
  #1 (permalink)
Lake wales FL/ USA
Experience: Intermediate
Platform: TOS ,Tradestation, Sierra
Trading: Futures
Posts: 40 since Jul 2013
Thanks: 9 given, 2 received

I'd like to get a ToS code converted to Sierra charts?

#Hint AlertsOn: Plot the arrows \nDefault = Yes
#Hint ShowTodayOnly: Plot only today's arrows\nDefault = Yes
#Hint ShowExtraDays: Add extra days to ShowTodayOnly \nDefault = 0
#Hint ShowMA_Curves:Show or Hide the MA plot \nDefault = Yes
#Hint BlenderKing_Short: Length of Short MA \nDefault = 4;
#Hint BlenderKing_Long: Length of Long MA \nDefault = 7

input ArrowsOn = yes;
input TracerLinesOn = no;
input PriceColorOn = Yes;

input ShowTodayOnly = no;
input ShowExtraDays = 0;
def Today =
if !ShowTodayOnly then 1 else
if GetDay() + ShowExtraDays >= GetLastDay() && GetYear() == GetLastYear() then 1 else 0;
input ArrowSpace = .233;
def space = Average(high - low) * ArrowSpace;

#Input AlertsOn = no;
def BuyIt = PPS().buysignal;
def SellIt = PPS().sellsignal;

plot ppsBuy = if !Today or !ArrowsOn then Double.NaN else BuyIt - space;
Alert(ppsBuy, “PPS Buy Signal”, Alert.BAR, Sound.Ring);

plot ppsSell = if !Today or !ArrowsOn then Double.NaN else SellIt + space;
Alert(ppsSell, “PPS Sell Signal”, Alert.BAR, Sound.Ring);

rec PriceAtBuy = if barNumber() == 1 then close else if !IsNaN(BuyIt[0]) then open[0] else PriceAtBuy[1];
rec PriceAtSell = if barNumber() == 1 then close else if !IsNaN(SellIt[0]) then open[0] else PriceAtSell[1];

rec trigger = if PriceAtBuy <> PriceAtBuy[1] then -1 else if PriceAtSell <> PriceAtSell[1] then 1 else trigger[1];
plot BuyPrice = if TracerLinesOn && trigger == -1 then PriceAtBuy else Double.NaN;
plot SellPrice = if TracerLinesOn && trigger == 1 then PriceAtSell else Double.NaN;

AssignPriceColor(if !PriceColorOn then Color.CURRENT else if trigger == 1 then else Color.GREEN);
# BlenderKing_R1R3

# Revision history:
# Rev Date Change Description
# ---- ---------- ------------------
# R1V1 2010.03.30 - KumoBob
# R1V2 2010.04.21 - KumoBob
# Made Arrows dependant upon SMA_4 direction
# R1V3 2010.11.17:21:43 - KumoBob
# Made Revision history compliant with current standard
# Removed signals
# Thanks to BlenderKing for sharing this formula with me!
# ____________________ BlenderKing _______________________;

declare upper;
input ShowMA_Curves = Yes;
input BlenderKing_Short = 4;
input BlenderKing_Long = 7;

def SMA_4 = Average(data = hlc3, length = BlenderKing_Short);
plot SMA_4plot = if Today && ShowMA_Curves then SMA_4 else Double.NaN;
def SMA_7 = Average(data = close, length = BlenderKing_Long);
plot SMA_7plot = if Today && ShowMA_Curves then SMA_7 else Double.NaN;

AddCloud(SMA_4plot, SMA_7plot);
plot Data = close;

Started this thread Reply With Quote

futures io Trading Community Platforms and Indicators Sierra Chart > Convert ToS code to Sierra

Last Updated on September 29, 2015

Upcoming Webinars and Events

NinjaTrader Indicator Challenge!


Journal Challenge w/$1500 prizes from Topstep!


Battlestations! Show us your trading desk - $1,500 in prizes!


Call Option Buying: The New Pain Trade? w/Carley Garner

Elite only

Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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.
no new posts