1 registered members (TipmyPip),
1,310
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Special Bars Script
[Re: danatrader]
#481867
11/09/20 22:14
11/09/20 22:14
|
Joined: Mar 2019
Posts: 357
danatrader
OP
Senior Member
|
OP
Senior Member
Joined: Mar 2019
Posts: 357
|
To be honest, I don't know much, but I would suggest you, to start with the workshops and buy the black book. Start with something easy, the special bars are really nice, cause based on renko you can create awesome strategies with really good returns.
But Zorro is Zorro and has all the advantages a scripting based tool brings. Sadly, those advantages come with not being graphical.
I would love to rebuild my SC strategy here too, just I am missing the dev skills, so, move on to easier returns...
Last edited by danatrader; 11/09/20 22:45.
|
|
|
Re: Special Bars Script
[Re: danatrader]
#481903
11/17/20 10:58
11/17/20 10:58
|
Joined: Mar 2017
Posts: 23
atr
Newbie
|
Newbie
Joined: Mar 2017
Posts: 23
|
I tried with shitSeries(int Filter) in the current beta version 2.33.6b and didn't work...
void run() { BarPeriod = 1; // determines here the time resolution of the bar StartDate = 20180601; EndDate = 20180901; LookBack = 0; set(PLOTNOW); while(asset(loop("EUR/USD","GBP/USD"))) { _bar = Renko1; vars O = series(priceOpen(),-LookBack), // series must be static here H = series(priceHigh(),-LookBack), L = series(priceLow(),-LookBack), C = series(priceClose(),-LookBack); if(nextBar(O,H,L,C)) { // ... perform the algorithm. Use only static series. // Do not use indicators that internally create series. vars Closes = series(priceClose()); shiftSeries(3); if(Closes[0]<Closes[1] and NumOpenLong<1) { enterLong(); }
if(Closes[0]>Closes[1] and NumOpenShort<1) { enterShort(); }
printf("#\nNew Bar"); } plot("Renko",C,LINE,RED); } } #endif[color:#FF6600][/color]
|
|
|
Re: Special Bars Script
[Re: danatrader]
#481933
11/23/20 10:07
11/23/20 10:07
|
Joined: Mar 2017
Posts: 23
atr
Newbie
|
Newbie
Joined: Mar 2017
Posts: 23
|
I tried the NOSHIFT flag with the beta Zorro version 2.33.8b and didn't work. NOSHIFT is supposed to control shift dynamic series... Any ideas?
void run() { BarPeriod = 1; // determines here the time resolution of the bar StartDate = 20180601; EndDate = 20180901; LookBack = 0; set(PLOTNOW,NOSHIFT,TICKS); while(asset(loop("EUR/USD","GBP/USD"))) { _bar = Renko1; vars O = series(priceOpen(),-LookBack), // series must be static here H = series(priceHigh(),-LookBack), L = series(priceLow(),-LookBack), C = series(priceClose(),-LookBack); if(nextBar(O,H,L,C)) { // ... perform the algorithm. Use only static series. // Do not use indicators that internally create series. vars Closes = series(priceClose()); if(Closes[0]<Closes[1] and NumOpenLong<1) { enterLong(); }
if(Closes[0]>Closes[1] and NumOpenShort<1) { enterShort(); }
printf("#\nNew Bar"); } plot("Renko",C,LINE,RED); } }[color:#FF6666][/color]
Last edited by atr; 11/23/20 10:07.
|
|
|
|