| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #9 | ||
![]() | Re: Automatic Pivots Calculation - Help I do understand that a lot of traders will not want to expend energy programming and indicators. | ||
| |
|
| | #10 | ||
![]() | Re: Automatic Pivots Calculation - Help Ok Tams and Blowfish. I will try to code something, but I do not know how to start !! I will read the thread you advise. I will see if I can find an idea. Regards Chloe | ||
| |
|
| | #11 | ||
![]() | Re: Automatic Pivots Calculation - Help Take a look at this simple code. It plots Camarilla Lines and Yesterdays OHLC(Open rem out) Perhaps put this on your other contracts and if it works for you then you can modify the arithmetic to account for your pivots. If you need some additional help - check me back! {Plots previous day Hi/Low/Close - Open {x} Out below} {Plots Camarilla Lines} {Rev date 07Aug09} variables: var0( 0 ) , var1( 0 ) , var2( 0 ) , var3( 0 ) , var4( 0 ) , var5( 0 ) , var6( 0 ) , var7( 0 ) , var8( 0 ) ; if Date <> Date[1] then begin var0 = var0 + 1 ; var1 = var2 ; var3 = var4 ; var5 = var6 ; var7 = Close[1] ; var2 = Open ; var4 = High ; var6 = Low ; end else begin if High > var4 then var4 = High ; if Low < var6 then var6 = Low ; end ; condition1 = var0 >= 2 and BarType < 3 ; value10 = ((var3 - var5)*(1.1/2)) + var7 ; {H4} value20 = ((var3 - var5)*(1.1/4)) + var7 ; {H3} value30 = ((var3 - var5)*(1.1/6)) + var7 ; {H2} value40 = ((var3 - var5)*(1.1/12)) + var7 ; {H1} value50 = var7 - ((var3 - var5)*(1.1/12)) ;{L1} value60 = var7 - ((var3 - var5)*(1.1/6)) ;{L2} value70 = var7 - ((var3 - var5)*(1.1/4)) ;{L3} value80 = var7 - ((var3 - var5)*(1.1/2)) ; {L4} if condition1 then begin Plot1( var1, "Y-O" ) ; Plot2( var3, "Y-H" ) ; Plot3( var5, "Y-L" ) ; Plot4( var7, "Y-C" ) ; Plot10( value10, "H4" ) ; Plot20( value20, "H3" ) ; Plot30( value30, "H2" ) ; Plot40( value40, "H1" ) ; Plot50( value50, "L1" ) ; Plot60( value60, "L2" ) ; Plot70( value70, "L3" ) ; Plot80( value80, "L4" ) ; end ; | ||
| |
|
| | #12 | ||
![]() | Re: Automatic Pivots Calculation - Help Thank you very much for you help, I really appreciated. I tried your code on CL contract (Mar 10) Today is Tuesday. So, the session on CL started at 6.00 pm (EST time) and will end on Wednesday at 5.15 pm (EST time). The previous session started at 6.00 pm (EST time) on Monday and ended on Tuesday at 5.15 pm (EST time). To calculate the pivot points, I need the High, the Low and the Close pf the session that started at 6.00 pm (EST time) on Monday and ended on Tuesday at 5.15 pm (EST time). These values are as follows: - High = 74.36 - Low = 73.71 - Close = 73.96 I tried your code, but it seems that your pivots are calculated on a session that starts at 12 am and ends at 11.59 p.m the same day. Am I right ? How can I modify it to calculate pivots on a session that starts at 6.00 pm (EST time) on Monday and ends on Tuesday at 5.15 pm (EST time) ? Many thanks in advance for your help Bets regards, Chloe | ||
| |
|
| | #13 | ||
![]() | Re: Automatic Pivots Calculation - Help Quote:
| ||
| |
|
| | #14 | ||
![]() | Re: Automatic Pivots Calculation - Help I am really sorry but: 1) today, I have no time to go to the Thread you advise me. 2) Ranger wrote: If you need some additional help - check me back!, that is the reason why I asked him my question: How can I modify it to calculate pivots on a session that starts at 6.00 pm (EST time) on Monday and ends on Tuesday at 5.15 pm (EST time) ? I will try to code something based on the Thread you advise me, but not before this week-end. Chloe | ||
| |
|
| | #15 | ||
![]() | Re: Automatic Pivots Calculation - Help Oh Boy ... you may need to renew your fan base. Perhaps send them chocolate chip cookies or hemlock ;o) OK, I understand the issue more clearly .... let me see, if I can help you. Cheers!!! michael | ||
| |
|
| | #16 | ||
![]() | Re: Automatic Pivots Calculation - Help The thread has the answers you seek. If you have difficulty understanding them then I am sure people will help you. They are unlikely to help if you have not done anything to help yourself. Actually strike that, looks like you have got ranger to waste there time re-inventing the wheel for you. | ||
| |
|
![]() |
| Tags |
| pivot, price volume relationship |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gold,Dollar and Euro Calculation | mehtaka | Beginners Forum | 7 | 06-17-2010 10:08 AM |
| Tick Size Calculation | PeterBrazel | Coding Forum | 1 | 08-17-2009 09:55 PM |
| Trendlines Automatic | dhelmin | Coding Forum | 1 | 06-29-2009 10:10 PM |
| Trend Lines Automatic | khagans | Coding Forum | 1 | 02-25-2009 01:01 AM |
| Capital Progression Calculation in Perl | Sparrow | Coding Forum | 4 | 03-07-2008 10:33 AM |