Basic Script Need some help please - futures io
futures io



Basic Script Need some help please


Discussion in ThinkOrSwim

Updated
    1. trending_up 496 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 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
 

Basic Script Need some help please

(login for full post details)
  #1 (permalink)
messi93
la plata buenos aires argentina
 
 
Posts: 1 since Jun 2018
Thanks: 0 given, 0 received

Hi guys good nigth, the last day I was codding some basic script but it doesent work properlly beacause, the script never plot any signal or make some order, if you can help me, I'll be grateful

 
Code
input mediamovilrapida = 4;
input mediamovilintermedia = 9;
input mediamovillenta = 18;
def ema1 = SimpleMovingAvg (length = mediamovilrapida);
def ema2 = SimpleMovingAvg (length = mediamovilintermedia);
def ema3 = SimpleMovingAvg (length = mediamovillenta);
def buy = mediamovilintermedia crosses above  mediamovillenta;
def sell = mediamovilintermedia crosses below mediamovillenta;
AddOrder(type = OrderType.BUY_TO_OPEN, condition = buy, arrowColor = Color.LIME, name = "Cruce de medias");
AddOrder(type = OrderType.SELL_TO_CLOSE, condition = sell, arrowColor = Color.LIME, name = "Cruce de mediasVenta")

Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(82 thanks from 10 posts)
looks_twoSalao's Journalby Salao
(25 thanks from 6 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(25 thanks from 9 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(12 thanks from 7 posts)
looks_5Maybe a little bit different journalby Malykubo
(7 thanks from 5 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
futures io site changelog and issues/problem reporting
73 thanks
The Crude Dude Oil Trading System
73 thanks
Would You Sell Your System?
71 thanks
FIO Journal Challenge - April 2021 w/Jigsaw Trading
32 thanks
Big Mike in Ecuador
28 thanks
 
(login for full post details)
  #2 (permalink)
 kjhosken 
Seattle, WA/USA
 
Experience: Intermediate
Platform: TOS, TS
Trading: Forex, crude
 
Posts: 90 since Sep 2016
Thanks: 7 given, 32 received

You haven't defined 'mediamovilintermedia crosses above mediamovillenta' as something that can be conditional.
mediamovilintermedia = 9, mediamovillenta = 18. Always. I think you mean to have"def buy = ema2 crosses above ema3" and "def sell = ema2 crosses below ema3"


messi93 View Post
Hi guys good nigth, the last day I was codding some basic script but it doesent work properlly beacause, the script never plot any signal or make some order, if you can help me, I'll be grateful

 
Code
input mediamovilrapida = 4;
input mediamovilintermedia = 9;
input mediamovillenta = 18;
def ema1 = SimpleMovingAvg (length = mediamovilrapida);
def ema2 = SimpleMovingAvg (length = mediamovilintermedia);
def ema3 = SimpleMovingAvg (length = mediamovillenta);
def buy = mediamovilintermedia crosses above  mediamovillenta;
def sell = mediamovilintermedia crosses below mediamovillenta;
AddOrder(type = OrderType.BUY_TO_OPEN, condition = buy, arrowColor = Color.LIME, name = "Cruce de medias");
AddOrder(type = OrderType.SELL_TO_CLOSE, condition = sell, arrowColor = Color.LIME, name = "Cruce de mediasVenta")


Follow me on Twitter Reply With Quote


futures io Trading Community Platforms and Indicators ThinkOrSwim > Basic Script Need some help please


Last Updated on June 13, 2019


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April
 

Seven Trading Mistakes Solved With Smart Trading Tools w/Brannigan Barrett

Elite only
     



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