darvas box code
Forums › ProRealTime English forum › ProBuilder support › darvas box code
- This topic has 5 replies, 2 voices, and was last updated 8 years ago by
Nicolas.
-
-
06/27/2016 at 9:31 AM #9871123456789101112131415161718192021222324252627282930313233n = 4h = highest[n]l = lowest[n]once b = 2v = hif h = high[n-1] and high[n-1] > high and high[n-1] > low and (b = 1 or b = 2 ) thenv = hb = 0elseif l = low[n-1] and low[n-1] < low and low[n-1] < high and ( b = 0 or b = 2 ) thenv = lb = 1elsev = v[1]endifendifreturn v
hi this is a code for placing tops and bottoms of the darvass boxes on a chart of candlesyicks
the problem is that each time i try to paste it on the new code page the system writs “syntex error” and does not eccept the code
can you help?
what is wrong?????
06/27/2016 at 10:55 AM #9877Hi, this is because you are referring to future candlestick with “n-1” which is not possible in PRT, because it doesn’t make look in the past, the whole history is only loaded once.
I’m not sure that it will draw correctly what you are trying to do here, but you can replace the “n-1” to “n+1” instead and see what happen.
06/27/2016 at 11:39 AM #9878123456789101112131415161718192021222324252627282930313233n = 4h = highest[n]l = lowest[n]once b = 2v = hif h = high[n+1] and high[n+1] > high and high[n+1] > low and (b = 1 or b = 2 ) thenv = hb = 0elseif l = low[n+1] and low[n+1] < low and low[n+1] < high and ( b = 0 or b = 2 ) thenv = lb = 1elsev = v[1]endifendifreturn vhi i did with
[n+1} as you sugested and still it gave a syntex error
can you help?
06/27/2016 at 3:01 PM #9891Yes, please find below the full code modified for probuilder compliance.
12345678910111213141516171819202122n = 4hh = highest[n](high)l = lowest[n](low)once b = 2v = hhif hh = high[n+1] and high[n+1] > high and high[n+1] > low and (b = 1 or b = 2 ) thenv = hhb = 0elseif l = low[n+1] and low[n+1] < low and low[n+1] < high and ( b = 0 or b = 2 ) thenv = lb = 1elsev = v[1]endifendifreturn v06/28/2016 at 12:53 PM #9967hi sorry to bother you but i pasted this code on the daily chart and all i see is that it makes a blue line from left to right all over the chart
i do not know what that means?
i like a code that will draw tops and bottoms of darvas boxes on the daily jap candlesticks chart
this code doesnt do nothing///
06/28/2016 at 2:44 PM #9969Yes this is the code you submit to be fixed. I don’t know where it comes from, maybe from another platform I guess? There is already another darvas boxes indicator in the library:
http://www.prorealcode.com/prorealtime-indicators/darvas-boxes/
-
AuthorPosts
Find exclusive trading pro-tools on