3 registered members (Ayumi, Akow, AndrewAMD),
1,505
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
weekly chart
#459978
06/13/16 10:10
06/13/16 10:10
|
Joined: Apr 2014
Posts: 24
yebit
OP
Newbie
|
OP
Newbie
Joined: Apr 2014
Posts: 24
|
I guess Zorro is not designed for this, but I want to plot a chart with weekly data.
I've read the manual exhaustively and I've taken the steps as recommended in the manual, shown below, but the bars remain daily, not weekly as promised:
set(PLOTNOW); BarPeriod = 1440; TimeFrame = frameSync(7); vars Price = series(price());
I have changed the order of the above statements and tried many different values for both. I have used PlotDate, MaxBars, TimeFrame, StartDate, EndDate, all in different combinations, orders and values, but always Zorro charts daily bars (except when BarPeriod is reduced, plotting more frequently than daily, moving even further away from the weekly goal).
If anyone has tried this and made it work, please post the solution here. Thankyou.
|
|
|
Re: weekly chart
[Re: yebit]
#460015
06/13/16 15:55
06/13/16 15:55
|
Joined: Apr 2014
Posts: 24
yebit
OP
Newbie
|
OP
Newbie
Joined: Apr 2014
Posts: 24
|
I went ahead and scripted a weekly bar chart, closely following the example given in the plot page in the manual:
function plotWeekly() {
set(PLOTNOW);
vars Price = series(price());
BarPeriod = 1440;
TimeFrame = 7;
if(Bar%7 == 0) {
plotGraph("weeklyBarRange", 0, priceHigh(), LINE, BLUE);
plotGraph("weeklyBarRange", 0, priceLow(), LINE|END, BLUE);
plotGraph("weeklyBarOpen", 0, priceOpen(), LINE, BLUE);
plotGraph("weeklyBarOpen", 2, priceOpen(), LINE|END, BLUE);
plotGraph("weeklyBarClose", 0, priceClose(), LINE, BLUE);
plotGraph("weeklyBarClose",-2, priceClose(), LINE|END, BLUE);
}
}
These weekly ranges make it clear to me that only Sopov and the Knockerfellers are going to be swing trading forex. Although the manual does say: For removing default chart elements such as price candles or equity curves, set their Color to 0. I can't figure out how to hide the daily bars that show up. Any ideas? Thanks.
|
|
|
Re: weekly chart
[Re: boatman]
#460099
06/16/16 07:07
06/16/16 07:07
|
Joined: Apr 2014
Posts: 24
yebit
OP
Newbie
|
OP
Newbie
Joined: Apr 2014
Posts: 24
|
|
|
|
|