Convert ToS code to Sierra - Sierra Chart | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > Sierra Chart

Convert ToS code to Sierra
Started:September 29th, 2015 (04:52 PM) by rmiller863 Views / Replies:322 / 0
Last Reply:September 29th, 2015 (04:52 PM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Convert ToS code to Sierra

Old September 29th, 2015, 04:52 PM   #1 (permalink)
Elite Member
Lake wales FL/ USA
Futures Experience: Intermediate
Platform: TOS ,Tradestation, Sierra
Favorite Futures: Futures
Posts: 32 since Jul 2013
Thanks: 7 given, 2 received

Convert ToS code to Sierra

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;

Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > Sierra Chart > Convert ToS code to Sierra

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert TradeStation XAverage function to Sierra code Renko123 Sierra Chart 15 April 5th, 2015 03:32 PM
Code TRX Channel for TOS (MT4 Code here) rommark ThinkOrSwim Programming 0 October 1st, 2014 03:55 PM
looking for someone to convert the PBFSqueeze indicator from NT to TOS Hguru ThinkOrSwim 0 May 3rd, 2013 06:35 PM
Code TOS Vervoort Crossover for Sierra platform trendfriendpa Sierra Chart 6 April 11th, 2013 10:07 AM
Can anyone convert a code from TOS j8fire ThinkOrSwim 8 July 18th, 2012 08:24 PM

All times are GMT -4. The time now is 12:49 PM.

Copyright © 2016 by 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

Page generated 2016-10-21 in 0.07 seconds with 21 queries on phoenix via your IP