Set Background Color in EasyLanguage - EasyLanguage Programming | futures io social day trading
futures io futures trading


Set Background Color in EasyLanguage
Updated: Views / Replies:5,748 / 5
Created: by Big Mike Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Set Background Color in EasyLanguage

  #1 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,220 received

Set Background Color in EasyLanguage

Seems simple enough, yet I can't get it to work.

 
Code
                            
input:

    
bgc(lightgray);

Plot1(C"Plot");
SetPlotBGColor(1bgc); 
Anyone with working code?

Thx,
Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,220 received


MultiCharts not Ninja, hence the thread title and location

Thx anyway.

Anyone else?

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #4 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,216 since Jun 2009
Thanks: 628 given, 6,313 received
Forum Reputation: Legendary

found this;

// suri.HACandles


// Original Code posted by SOLIDUS Nov. 05, 07:
// Heikin-Ashi Method of Candles by deMicron (Suri Duddella)
// suriNotes.com, suriNotes, Stock Research, Futures Trading, Emini Trading, Tradestation, Indicators


inputs: UPcolor(green), DNcolor(red), WICKcolor(black), WICKwidth(1), BODYwidth(3);

variables:
color(0),
BodySize(iff(bodywidth=2, 1, iff(bodywidth>4, 4, bodywidth) )),
Outline(iff(bodysize=0, 2, iff(bodysize=1, 3, iff(bodysize=3, 4, 5))) ),
colorU(UPcolor),
colorD(DNcolor),
colorW(WICKcolor) ;


vars: haClose(0),haOpen(0),haHigh(0),haLow(0), CandleColor(0), CompBars(3);
Var: DateC(0), TimeC(0),
bOpen(0),bClose(0),bHigh(0),bLow(0);


{ Outlined Candles by Solidus

pixel sizes of plot widths
0 - 1px
1 - 2
2 - 3
3 - 4
4 - 6
5 - 8
6 - 14
}

{ ------------------------- Revision 1 Aug 15 07 ------------------------------
- Simplified coloring code for efficiency.
- Removed Once command to permit use with pre-8.2 Tradestation.
- Added efficiency fix so RGB color values as inputs need only calculate once on startup.
}


// Heikin-Ashi Candles by Suri Duddella (deMicron)

if BarNumber = 1 then
begin
haOpen = open;
haClose = (O+H+L+C)/4;
haHigh = MaxList( high, haOpen, haClose);
haLow = MinList( low, haOpen,haClose);
end;

if BarNumber > 1 then
begin
haClose = (O+H+L+C)/4;
// haClose = (H+L+C)/3;
haOpen = (haOpen [1] + haClose [1])/2 ;
haHigh = MaxList(High, haOpen, haClose) ;
haLow = MinList(Low, haOpen, haClose) ;

if haClose > haOpen then
Candlecolor = ColorU
else
Candlecolor = ColorD;

for value1 = 1 to CompBars
begin
if haOpen <= MaxList(haOpen[value1],haClose[value1]) and
haOpen >= MinList(haOpen[value1],haClose[value1]) and
haClose <= MaxList(haOpen[value1],haClose[value1]) and
haClose >= MinList(haOpen[value1],haClose[value1]) then
Candlecolor = Candlecolor[value1];
end;

bOpen = haOpen;
bClose = haClose;
bHigh = haHigh;
bLow = haLow;
end;


if bClose>bOpen then color=colorU else color=colorD;

plot1(bClose,"c outline a",colorW,0,outline);
plot2(bClose,"c outline b");
plot3(bOpen,"o outline a",colorW,0,outline);
plot4(bOpen,"o outline b");

Plot5(bClose,"C",color,0,bodysize);
Plot6(bOpen,"O");

Plot7(bClose,"C outline",colorW,0,outline);
Plot8(bOpen,"O outline");

plot9(bHigh,"H",colorW,0,WICKwidth);
plot10(bLow,"L");

Reply With Quote
 
  #5 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,238 since Jun 2009
Thanks: 29,350 given, 83,220 received

Thx for trying a second time, but I don't see anything there for painting a background color on the chart. Please point to me the line(s) of code you were thinking...

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #6 (permalink)
Trading Apprentice
vienna
 
Futures Experience: Master
Platform: MultiCharts
Favorite Futures: NQ
 
Posts: 22 since Aug 2009
Thanks: 0 given, 37 received

Mike,
SetplotBGcolor is for Radarcreen / Scanner.

If you want to color your BG in charts you need to use Plot1 and Plot2 as Bar High and Bar Low, i.e.

 
Code
vars: BGCol(white);

if close > Average (c,20) then BGCol= cyan else BGCol= magenta;

Plot1(GetAppInfo(aiHighestDispValue),"aHi");
Plot2(GetAppInfo(aiLowestDispValue),"aLo");

SetPlotColor(1, BGCol);
SetPlotColor(2, BGCol);
Click on Price data -> Visual Order -> Bring to Front.

Reply With Quote
The following 4 users say Thank You to insideday for this post:

Reply



futures io > > > > > Set Background Color in EasyLanguage

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Background Color function to an indicator michaelf NinjaTrader Programming 33 October 15th, 2014 06:34 PM
set custom color Blackburn NinjaTrader Programming 8 March 5th, 2012 04:01 PM
Background color neilzep NinjaTrader 4 May 17th, 2011 11:58 PM
Remove Background from CoronaSwingPsn??? tdaman NinjaTrader 1 February 26th, 2011 02:53 AM
Do you keep changing the background colors of your charts? sharp2be NinjaTrader 7 April 16th, 2010 03:55 PM


All times are GMT -4. The time now is 06:04 PM.

Copyright © 2017 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
Page generated 2017-12-12 in 0.09 seconds with 19 queries on phoenix via your IP 54.167.44.32