tpham1002002
Newbie
- Messages
- 1
- Likes
- 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
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