PlotColors as strategy trigger - futures io
futures io futures trading



PlotColors as strategy trigger


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one cory with 2 posts (2 thanks)
    2. looks_two microsat with 2 posts (0 thanks)
    3. looks_3 DavidHP with 1 posts (1 thanks)
    4. looks_4 Jaba with 1 posts (0 thanks)
    1. trending_up 1,128 views
    2. thumb_up 3 thanks given
    3. group 4 followers
    1. forum 7 posts
    2. attach_file 2 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
 

PlotColors as strategy trigger

(login for full post details)
  #1 (permalink)
houston texas/us
 
 
Posts: 25 since Dec 2014
Thanks: 6 given, 2 received

Can we use PlotColors as strategy trigger?

like
if (CustomIndicator.PlotColors[0][0]==Color.Red)
EnterShort();

Reply With Quote

Can you help answer these questions
from other members on futures io?
Work with historical tcks data on MUltichart NET PowerLa …
MultiCharts
ZigZag with Depth and Backstep
EasyLanguage Programming
What blockvolume is visible? - order processing
NinjaTrader
Help Needed: TOS Options Chain IV & IMPL MOVE Calcul …
ThinkOrSwim
Neurological explanations for trading Success
Psychology and Money Management
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
137 thanks
Big Mike in Ecuador
34 thanks
Want your NinjaTrader indicator created, free?
32 thanks
Saturday Morning Market Replay!
20 thanks
Selling Options on Futures?
19 thanks
 
(login for full post details)
  #3 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,030 since Jun 2009
Thanks: 845 given, 7,894 received



microsat View Post
Can we use PlotColors as strategy trigger?

like
if (CustomIndicator.PlotColors[0][0]==Color.Red)
EnterShort();

maybe it's better to understand which condition to make it red.

Reply With Quote
The following user says Thank You to cory for this post:
 
(login for full post details)
  #4 (permalink)
houston texas/us
 
 
Posts: 25 since Dec 2014
Thanks: 6 given, 2 received

in the indicator,
if (Rising(SMA(14)) && RSI(14) > 30 )
PlotColors[0][0] = RisingColor; //Color.Blue
else if (Falling(SMA(14)) && RSI(14) < 70 )
PlotColors[0][0] = FallingColor; //Color.Red
else
PlotColors[0][0] = NeutralColor; //Color.Yellow


Can we just use PlotColors[0][0] to trigger the short/long entry in a strategy?

When I tried to call PlotColors[0][0], it always gave back 'Color [Empty]'.
But in chart mode of the backtest, the indicator does show three different colors.


cory View Post
maybe it's better to understand which condition to make it red.


Reply With Quote
 
(login for full post details)
  #5 (permalink)
Austin TX
 
Experience: Intermediate
Platform: SaintGobain Crystal Ball
Trading: 6E
 
Posts: 81 since Oct 2010
Thanks: 102 given, 133 received


cory View Post
maybe it's better to understand which condition to make it red.

Well, bulls charge when they see red, right? Then what bears do? They don't like green... I'm confused

Reply With Quote
 
(login for full post details)
  #6 (permalink)
Westlake, Oh
 
Experience: Beginner
Platform: NinjaTrader
Trading: CL
 
Riverend's Avatar
 
Posts: 362 since Jun 2009
Thanks: 1,511 given, 219 received

@cory
I tried using this indicator with the strategy wizard but the two colors green or red are not available when I select
"plot" in the Wizard Gui. When I edited the indicator I see plots for red and green also Rising and falling is referenced.Can the
colors or directions be added to the Strategy Wizard. BTW some funny comments by @Zondor the script. Any help would be appreciated.



LowPassFilter_v1(1).zip


Reply With Quote
 
(login for full post details)
  #7 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,030 since Jun 2009
Thanks: 845 given, 7,894 received


Riverend View Post
...
I tried using this indicator with the strategy...

I don't know how to use strategy, sorry!

Reply With Quote
The following user says Thank You to cory for this post:
 
(login for full post details)
  #8 (permalink)
Market Wizard
New Orleans, La (Mardi Gras City)
 
Experience: Advanced
Platform: NinjaTrader
Broker: Ninjatrader / Optimus Futures / AmpFutures
Trading: ES / 6E / 6B / CL
 
DavidHP's Avatar
 
Posts: 1,351 since Aug 2009
Thanks: 9,576 given, 2,363 received


microsat View Post
in the indicator,
if (Rising(SMA(14)) && RSI(14) > 30 )
PlotColors[0][0] = RisingColor; //Color.Blue
else if (Falling(SMA(14)) && RSI(14) < 70 )
PlotColors[0][0] = FallingColor; //Color.Red
else
PlotColors[0][0] = NeutralColor; //Color.Yellow


Can we just use PlotColors[0][0] to trigger the short/long entry in a strategy?

When I tried to call PlotColors[0][0], it always gave back 'Color [Empty]'.
But in chart mode of the backtest, the indicator does show three different colors.

@microsat I've done this in one of my indicators or strategy but I'm not on my main PC to copy and paste it.
I will look it up this weekend if you are still interested.
Let me know if I should search for it.

Rejoice in the Thunderstorms of Life . . .
Knowing it's not about Clouds or Wind. . .
But Learning to Dance in the Rain ! ! !
Follow me on Twitter Reply With Quote
The following user says Thank You to DavidHP for this post:


futures io Trading Community Platforms and Indicators NinjaTrader > PlotColors as strategy trigger


Last Updated on September 18, 2015


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

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

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



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