Here is the code of the initial balance usable in all the timeframes lower than H1.
Schedules can be modified according to the cessions. To add the color of the IB go to price
configure color zone.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
start = 080000 end = 090000 tc = time>=start and time<end if tc then if not tc[1] then valeurhaute=high valeurbasse=low endif valeurhaute=max(high,valeurhaute) valeurbasse=min(low,valeurbasse) canal = (valeurhaute-valeurbasse) valeurbasseA = valeurbasse-canal valeurbasseB = valeurbasse-(canal*1.618) valeurbasseC = valeurbasse-(canal*2) valeurbasseD = valeurbasse-(canal*3) valeurhauteA = valeurhaute+canal valeurhauteB = valeurhaute+(canal*1.618) valeurhauteC = valeurhaute+(canal*2) valeurhauteD = valeurhaute+(canal*3) ENDIF RETURN valeurhaute as " I B H",valeurbasse as " I B L",valeurbasseA as "SUP1",valeurbasseB as "SUP1.618",valeurbasseC as "SUP2",valeurbasseD as "SUP3",valeurhauteA as "RES1",valeurhauteB as "RES1.618",valeurhauteC as "RES2",valeurhauteD as "RES3" |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :
Filename : download the ITF files
How to import ITF files into ProRealTime platform?
PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
Amélioration du code ………………………….
Je trouvais assez frustrant d’attendre 09H00 pour avoir une IB digne de ce nom.
Donc dans un TIMEFRAME 15MN , j’ai remodifié le code afin d’avoir une pertinence de prise de position dès le pré-cash gràce
au middle dessiné en jaune.
Bien évidemment pour ceux qui sont en M30 le code est a modifié.
if TIME=081500 then
valeurhaute= highest[1](high)
valeurbasse= lowest[1](low)
milieu = valeurhaute -((valeurhaute-valeurbasse)/2)
ENDIF
if TIME=083000 then
valeurhaute= highest[2](high)
valeurbasse= lowest[2](low)
milieu = valeurhaute -((valeurhaute-valeurbasse)/2)
ENDIF
if TIME=084500 then
valeurhaute= highest[3](high)
valeurbasse= lowest[3](low)
milieu = valeurhaute -((valeurhaute-valeurbasse)/2)
ENDIF
if TIME=090000 then
valeurhaute= highest[4](high)
valeurbasse= lowest[4](low)
milieu = valeurhaute -((valeurhaute-valeurbasse)/2)
canal = (valeurhaute-valeurbasse)
valeurbasseA = valeurbasse-canal*0.50
valeurbasseB = valeurbasse-(canal*1)
valeurbasseC = valeurbasse-(canal*1.5)
valeurbasseD = valeurbasse-(canal*2)
valeurbasseE = valeurbasse-(canal*2.50)
valeurbasseF = valeurbasse-(canal*3)
valeurhauteA = valeurhaute+canal*0.50
valeurhauteB = valeurhaute+(canal*1)
valeurhauteC = valeurhaute+(canal*1.50)
valeurhauteD = valeurhaute+(canal*2)
valeurhauteE = valeurhaute+(canal*2.50)
valeurhauteF = valeurhaute+(canal*3)
endif
RETURN valeurhaute as ” I B H”,valeurbasse as ” I B L”,MILIEU as”MILIEU”,valeurbasseA as “SUP0.50”,valeurbasseB as “SUP1”,valeurbasseC as “SUP1.50”,valeurbasseD as “SUP2”,valeurbasseE as “SUP2.50”,valeurbasseF as “SUP3”,valeurhauteA as “RES0.50”,valeurhauteB as “RES1”,valeurhauteC as “RES1.50”,valeurhauteD as “RES2”,valeurhauteE as “RES2.50”,valeurhauteF as “RES3”
if TIME=081500 then
valeurhaute= highest[1](high)
valeurbasse= lowest[1](low)
milieu = valeurhaute -((valeurhaute-valeurbasse)/2)
ENDIF
if TIME=083000 then
valeurhaute= highest[2](high)
valeurbasse= lowest[2](low)
milieu = valeurhaute -((valeurhaute-valeurbasse)/2)
ENDIF
if TIME=084500 then
valeurhaute= highest[3](high)
valeurbasse= lowest[3](low)
milieu = valeurhaute -((valeurhaute-valeurbasse)/2)
ENDIF
if TIME=090000 then
valeurhaute= highest[4](high)
valeurbasse= lowest[4](low)
milieu = valeurhaute -((valeurhaute-valeurbasse)/2)
canal = (valeurhaute-valeurbasse)
valeurbasseA = valeurbasse-canal*0.50
valeurbasseB = valeurbasse-(canal*1)
valeurbasseC = valeurbasse-(canal*1.5)
valeurbasseD = valeurbasse-(canal*2)
valeurbasseE = valeurbasse-(canal*2.50)
valeurbasseF = valeurbasse-(canal*3)
valeurhauteA = valeurhaute+canal*0.50
valeurhauteB = valeurhaute+(canal*1)
valeurhauteC = valeurhaute+(canal*1.50)
valeurhauteD = valeurhaute+(canal*2)
valeurhauteE = valeurhaute+(canal*2.50)
valeurhauteF = valeurhaute+(canal*3)
endif
RETURN valeurhaute as ” I B H”,valeurbasse as ” I B L”,MILIEU as”MILIEU”,valeurbasseA as “SUP0.50”,valeurbasseB as “SUP1”,valeurbasseC as “SUP1.50”,valeurbasseD as “SUP2”,valeurbasseE as “SUP2.50”,valeurbasseF as “SUP3”,valeurhauteA as “RES0.50”,valeurhauteB as “RES1”,valeurhauteC as “RES1.50”,valeurhauteD as “RES2”,valeurhauteE as “RES2.50”,valeurhauteF as “RES3”