Nederland
Posts: 1 since May 2013
Thanks Given: 0
Thanks Received: 0
|
Hi I am new to this forum and am wondering if someone could please help me out. I cannot seem to find a reference anywhere on how to get weekly pricebars as % change into radarscreen. I would like to have an overview of the last 6 weeks.. The following code only works for the current week but not when i also want to see the previous 5 weeks close price (which is logical because if this week is not yet fully completed this code wil just count 5 daily bars back and not start at monday):
Vars: cng(0);
cng = ((close / close[5] ) -1 ) ;
If Close[1] > 0 then
cng = ((Close / Close[5] ) -1 ) ;
Plot1(cng);
If Plot1 > 0 then
SetPlotColor(1, GREEN)
Else
SetPlotColor(1, RED);
Any help will be greatly appreciated, i know that there is an option to declare the timeframe in a function but could not find any documentation on how to do that..
Ok i found out what i did wrong... I should have used the CloseW function .. duhh.. hahaha
|