Setting up Radarscreen

breadman

Established member
Messages
526
Likes
25
I have being running Tradestation for 2 months now and manually monitoring VWAP & MACCI levels on charts.
I am in the process of including RADAR SCREEN on Tradestation.
These are the following code i have for the VWAP & MACCI.

VWAP
[LegacyColorValue = true];

inputs:
UpColor(Blue),
DownColor(Red);

vars:
Answer(0),
U_MPD (0),
L_MPD (0);


Answer = VWAP_H;
U_MPD = VWAP_H + ((highD(0)-lowD(0))/2);
L_MPD = VWAP_H - ((highD(0)-lowD(0))/2);

if AvgPrice >= Answer then
SetPlotColor(1,DownColor)
else
SetPlotColor(1,UpColor);

Plot1(Answer,"VWAP");
Plot2 (U_MPD,"Upper");
Plot3 (L_MPD,"Lower");

MACCI
[LegacyColorValue = true];


{
Data1 - Stock

}
Inputs:Length1(6), Length2(5);
Vars:CCIval(0),CCIavg(0);


CCIval = CCI(Length1);
CCIavg = average(CCIval, Length2);

plot1(CCIavg , "MACCI ");

What i require assistance with is using these's code in RADAR SCREEN.
1) will they work in radar screen? or are they going to have to be changed ?
2) looking at post from other people, they have their code set to highlight "buy" or "sell" with different colours, what sort of extra codeing will that require? I believe i am presuming rightly that i will have to set my own condition about what i consider to be a buy or a sell

My abilities with Trade station are limited at the moment, any help would be greatly appreciated.
 
If you remind me at the weekend I will help you with setting up the alert notification code for colour highlighting and settings for these indicators to work in RS :)


Paul
 
Trader333 said:
If you remind me at the weekend I will help you with setting up the alert notification code for colour highlighting and settings for these indicators to work in RS :)


Paul


cheers Paul,
 
Paul sorry for not getting back sooner......had to work all weekend,
Still very much need your help.
 
To get coloured alerts you need to code something similar to the following:


If Condition2 then begin
Plot1("Short", "Alert", Black);
SetPlotBgColor(1, Red);
end;


This will plot the alert in black with a red background for a condition that you have set previously. Give it a go and see how you get on. Generally speaking, indicators that work in Tradestation should work in RS but if you are using a 1min timeframe in RS you will need to set the bars back to 390 (ie the length of the trading session).

Paul
 
Top