Hi
A few dumb questions from a newbe ... bear with me!
1. how do i construct this in the VT language?
if ( x > y and a < b) then
output_variable = 1;
else if ( x < y and a < b) then
output_variable = -1;
else
output_variable = 0;
endif
2) then if the output_variable is 1 paint a buy arrow on the chart below the bar , if the output_variable is -1 paint a sell arrow in the chart above the bar and if the output_variable is 0 paint nothing.
3) can I refer to custom indicators in code?
4) how in code do i determine the current time period?
5) can i calculate a moving average in custom indicator code for a different time frame than the chart is in ... e.g. in a custome indicator designed for a 30 minute chart can i calculate a daily moving average?
THANKS !!!!!!!
Paul
A few dumb questions from a newbe ... bear with me!
1. how do i construct this in the VT language?
if ( x > y and a < b) then
output_variable = 1;
else if ( x < y and a < b) then
output_variable = -1;
else
output_variable = 0;
endif
2) then if the output_variable is 1 paint a buy arrow on the chart below the bar , if the output_variable is -1 paint a sell arrow in the chart above the bar and if the output_variable is 0 paint nothing.
3) can I refer to custom indicators in code?
4) how in code do i determine the current time period?
5) can i calculate a moving average in custom indicator code for a different time frame than the chart is in ... e.g. in a custome indicator designed for a 30 minute chart can i calculate a daily moving average?
THANKS !!!!!!!
Paul