Easylanguage: How to get color of any candlestick bar in a chart

tpham1002002

Newbie
1 0
Hi All,

I have this easylanguage program that signal a buy by comparing the width of candlestick bars of the chart in TradeStation platform

Inputs:
BuyColor(Blue),
SellColor(Red),
BuySuri(White),
SellSuri(Yellow),
Magictick(1),
Offset("No");

Variable:
MT(0),
OffsetDist(1) {Dist for the offset from High/Low};

MT=Magictick*(MinMove/PriceScale) {Calculate the minimum tick move on Tradestation};

If (High>High[1] and Low[1]>=Low[2] and Low[2]<=Low[3] and Low[3]<=Low[4]) Then
Begin
{chiu change plot1(low) to plot1(High[1]+Magictick),Low[2]<Low[3] to Low[2]<=Low[3] and take away Low>Low(1) }
If Offset="No" Then Plot1(High[1]+MT,"buyp",BuyColor);
If Offset="Yes" Then Plot1(High+OffsetDist,"buyp",BuyColor);
Alert("3BR Buy");
End;

I would like to ask whether if any call that can tell the color of any candlestick from the char. I need that to make sure the bar is in green color before sending the buy signal

Thank you
 

Similar threads


AdBlock Detected

We get it, advertisements are annoying!

But it's thanks to our sponsors that access to Trade2Win remains free for all. By viewing our ads you help us pay our bills, so please support the site and disable your AdBlocker.

I've Disabled AdBlock