Set Background Color in EasyLanguage - futures io
futures io



Set Background Color in EasyLanguage


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one Big Mike with 3 posts (0 thanks)
    2. looks_two cory with 2 posts (0 thanks)
    3. looks_3 insideday with 1 posts (4 thanks)
    4. looks_4 Alexlaxmikant with 1 posts (0 thanks)
    1. trending_up 9,722 views
    2. thumb_up 4 thanks given
    3. group 3 followers
    1. forum 5 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
 

Set Background Color in EasyLanguage

(login for full post details)
  #1 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 50,088 since Jun 2009
Thanks: 32,548 given, 98,546 received

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

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/

Visit other sites? Please spread the word about your experience with our community!
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Need help with strategy PriceActionSwingPro
NinjaTrader
Needing harmonic patterns indicator
TradeStation
heatmap order flow +
NinjaTrader
options data for chart
NinjaTrader
Multichart NET set signal parameters different than the …
MultiCharts
 
Best Threads (Most Thanked)
in the last 7 days on futures io
I finally blew up an account
51 thanks
FIO Journal Challenge - April 2021 w/Jigsaw Trading
38 thanks
The Crude Dude Oil Trading System
36 thanks
The tiyfTradePlanFactory indicator
20 thanks
Big Mike in Ecuador
15 thanks
 
(login for full post details)
  #3 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 50,088 since Jun 2009
Thanks: 32,548 given, 98,546 received


MultiCharts not Ninja, hence the thread title and location

Thx anyway.

Anyone else?

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/

Visit other sites? Please spread the word about your experience with our community!
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote
 
(login for full post details)
  #4 (permalink)
 cory 
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,044 since Jun 2009
Thanks: 857 given, 7,916 received

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
 
(login for full post details)
  #5 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 50,088 since Jun 2009
Thanks: 32,548 given, 98,546 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

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/

Visit other sites? Please spread the word about your experience with our community!
Follow me on Twitter Visit my futures io Trade Journal Started this thread Reply With Quote
 
(login for full post details)
  #6 (permalink)
insideday
vienna
 
 
Posts: 22 since Aug 2009
Thanks: 0 given, 38 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


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Set Background Color in EasyLanguage


Last Updated on October 27, 2010


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing

HIRO Indicator by Spotgamma in Bookmap w/Brent Kochuba @ SpotGamma

Elite only

NEW BlackBird Features + FOREX Support w/Jeremy Tang @ SharkIndicators

Elite only
 

Our 12-year anniversary w/ $$,$$$ prizes (check soon)

June
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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