CCI_CLOUDS for TOS - futures io
futures io futures trading



CCI_CLOUDS for TOS


Discussion in ThinkOrSwim

Updated by alagrande
    1. trending_up 363 views
    2. thumb_up 3 thanks given
    3. group 2 followers
    1. forum 19 replies
    2. attach_file 2 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,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)

 
Thread Tools Search this Thread
 

CCI_CLOUDS for TOS

  #1 (permalink)
glendale ca usa
 
 
Posts: 82 since Sep 2017
Thanks: 11 given, 64 received

CCI_CLOUDS for TOS

#CCI_CLOUDS
declare lower;
input cciLength2 = 5;
input cciAvgLength2 = 3;

input over_Sold = 20;
input over_Bought = 80;

plot OverBought = over_Bought;
OverBought.SetStyle(Curve.LONG_DASH);
plot OverSold = over_Sold;
OverSold.SetStyle(Curve.LONG_DASH);
#--------------------------------------------

plot CCI2 = .5 * CCI(length = cciLength2) + 50;
plot CCIAvg2 = Average(CCI2, cciAvgLength2);
plot CCI3 = ExpAverage(CCI2);
CCI2.SetStyle(Curve.SHORT_DASH);
CCI2.SetDefaultColor(GetColor(6));
CCIAvg2.SetDefaultColor(Color.RED);
CCI3.setDefaultColor(color.yellow);

AddCloud(CCI2, CCIAvg2, Color.GREEN, Color.RED);
AddCloud(CCI2, CCIAvg2, Color.GREEN, Color.RED);
AddCloud(CCIAvg2, CCI3, Color.GREEN, Color.RED);

Reply With Quote

Can you help answer these questions
from other members on futures io?
Convert NinjaTrader NT7 indicator to Tradestation EasyLanguage and RADARSCREEN
Platforms and Indicators
Issue meeting order entry conditions
Elite Automated NinjaTrader Trading
Last 5 minutes Label
ThinkOrSwim
Moving average with Lag reduction
NinjaTrader
Linux?
ThinkOrSwim
 
 
  #2 (permalink)
ROY, Utah
 
 
Posts: 33 since Apr 2020
Thanks: 3 given, 5 received

This plots out great. What would be the proper scripting to change it to a Strategy?

Reply With Quote
 
  #3 (permalink)
glendale ca usa
 
 
Posts: 82 since Sep 2017
Thanks: 11 given, 64 received


i have no idea!

Reply With Quote
 
  #4 (permalink)
ROY, Utah
 
 
Posts: 33 since Apr 2020
Thanks: 3 given, 5 received

I figured it out
THANKS

Reply With Quote
 
  #5 (permalink)
ROY, Utah
 
 
Posts: 33 since Apr 2020
Thanks: 3 given, 5 received

Is there a way to get it to trigger at condition, or will it always wait til next bar

Reply With Quote
 
  #6 (permalink)
ROY, Utah
 
 
Posts: 33 since Apr 2020
Thanks: 3 given, 5 received

Seams to be a profitable strategy

#CCI_CLOUDS

input cciLength2 = 5;
input cciAvgLength2 = 3;
input over_Sold = 20;
input over_Bought = 80;

#--------------------------------------------

def CCI2 = .5 * CCI(length = cciLength2) + 50;
def CCIAvg2 = Average(CCI2, cciAvgLength2);
def CCI3 = ExpAverage(CCI2);
input usetimefilter = yes;

#positioning
input rthopen = 0930;
input rthclose = 2000;
def RTH = if usetimefilter == yes then if SecondsFromTime(rthopen) >= 0 and
SecondstillTime(rthclose) >= 0
then 1
else 0 else 1;

AddOrder(OrderType.BUY_TO_OPEN, rth == 1 and CCI2 crosses above CCI3,
tickcolor = GetColor(0), arrowcolor = GetColor(0), name = "CCI_LE");
AddOrder(OrderType.SELL_TO_CLOSE, rth -- 1 and CCI2 crosses below CCI3,
tickcolor = GetColor(1), arrowcolor = GetColor(1), name = "CCI_SE");

Reply With Quote
The following user says Thank You to StockT8er for this post:
 
  #7 (permalink)
ROY, Utah
 
 
Posts: 33 since Apr 2020
Thanks: 3 given, 5 received

I did add a Trailing Stop


input trailStop = .3;
input offsetType = {default percent, value, tick};

def entryPrice = entryPrice();
def price = if IsNaN(entryPrice[1]) then entryPrice else if !IsNaN(entryPrice) then Max(high, price[1]) else entryPrice;

def mult;
switch (offsetType) {
case percent:
mult = price / 100;
case value:
mult = 1;
case tick:
mult = tickSize();
}

def trailStopPrice = price - trailStop * mult;

addOrder(OrderType.SELL_TO_CLOSE, low <= trailStopPrice, tickColor = GetColor(0), arrowColor = GetColor(0))

Reply With Quote
The following user says Thank You to StockT8er for this post:
 
  #8 (permalink)
glendale ca usa
 
 
Posts: 82 since Sep 2017
Thanks: 11 given, 64 received

good job.

Reply With Quote
 
  #9 (permalink)
glendale ca usa
 
 
Posts: 82 since Sep 2017
Thanks: 11 given, 64 received

i have installed the new mod with the add order code but i see nothing on the chart.
i am not familiarized with this add order script.
can you explain, please!

Reply With Quote
 
  #10 (permalink)
ROY, Utah
 
 
Posts: 33 since Apr 2020
Thanks: 3 given, 5 received


Interesting It did not work for me at first either. Not sure what I did. I did log off and back on, not sure if that did it or not
Are you using ThinkorSwim

Try this correction

AddOrder(OrderType.BUY_TO_OPEN, rth == 1 and CCI2 crosses above CCI3,
tickcolor = GetColor(0), arrowcolor = GetColor(0), name = "CCI_LE");
AddOrder(OrderType.SELL_TO_CLOSE, rth == 1 and CCI2 crosses below CCI3,
tickcolor = GetColor(1), arrowcolor = GetColor(1), name = "CCI_SE");


Last edited by StockT8er; May 17th, 2020 at 12:18 PM.
Reply With Quote



futures io Trading Community Platforms and Indicators ThinkOrSwim > CCI_CLOUDS for TOS




Upcoming Webinars and Events
 

Understanding Order Flow Stop Runs & Icebergs w/Bookmap

May 28
 

Free BloodHound Licenses to everyone!

June
     



Copyright © 2020 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