Aggiunta di indicazione
Forums › ProRealTime forum Italiano › Supporto ProBuilder › Aggiunta di indicazione
- This topic has 19 replies, 2 voices, and was last updated 6 years ago by
Gianco.
-
-
06/22/2018 at 2:35 PM #74097
C’è sempre il problema dello sfalzamento dovuto al ricalcolo su candele passate. NON è possibile stampare l’istogramma esattamente dove c’è la freccia, viene sfalzato di alcune candele.
Se ti va bene lo stesso, eccolo:
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495DEFPARAM CalculateOnLastBars = 1000//computation of the radius to draw ellipses//radius=average[200](range)/4//if golong=1 then//golong=0//endif//formula to compute short term swing pointsif (high>alto[1]) and not (high<high[1] and low>low[1]) thenalto=highbasso=lowmarkup=barindexmarkhigh=highendifif (low<basso[1]) and not (high<high[1] and low>low[1]) thenalto=highbasso=lowmarkdown=barindexmarklow=lowendifx = 0if alto<alto[1] and trend=1 thentrend=0//drawarrowdown(markup,markhigh)mediummarkup=shortmarkupshortmarkup=markuplongmarkhigh=mediummarkhighmediummarkhigh=shortmarkhighshortmarkhigh=markhigh//intermediate high swing pointsif longmarkhigh<mediummarkhigh and mediummarkhigh>shortmarkhigh then//DRAWELLIPSE(mediummarkup-1, mediummarkhigh-radius, mediummarkup+1, mediummarkhigh+radius)drawarrowdown(mediummarkup,markhigh+10)x = -1endifendifif basso>basso[1] and trend=0 thentrend=1//drawarrowup(markdown,marklow)mediummarkdown=shortmarkdownshortmarkdown=markdownlongmarklow=mediummarklowmediummarklow=shortmarklowshortmarklow=marklow//intermediate low swing pointsif longmarklow>mediummarklow and mediummarklow<shortmarklow then//DRAWELLIPSE(mediummarkdown-1, mediummarklow-radius, mediummarkdown+1, mediummarklow+radius)x = 1drawarrowup(mediummarkdown,marklow-10)//drawcandle(open,high,low,close)return x,006/28/2018 at 8:50 PM #7464807/03/2018 at 11:15 AM #7515607/03/2018 at 2:15 PM #75165Scusami, mancano 2 ENDIF da inserire tra le righe 94 e 95 (la 95 diventerà 97)
12endifendif07/19/2018 at 5:05 AM #76277 -
AuthorPosts