| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #17 | ||
![]() | Re: Automatic Pivots Calculation - Help Code:
{Plots previous day Hi/Low/Close - Open {x} Out below}
{Plots Camarilla Lines}
{Rev date 07Aug09}
input: SessStart(1803),SessEND(1615);
variables:
var0( 0 ) ,
var1( 0 ) ,
var2( 0 ) ,
var3( 0 ) ,
var4( 0 ) ,
var5( 0 ) ,
var6( 0 ) ,
var7( 0 ) ,
var8( 0 ) ,
SessReset( False ) ,
CamarillaReset( False ) ;
SessReset = t = SessEnd;
CamarillaReset = t = SessStart;
if SessReset then
begin
var0 = var0 + 1 ;
var1 = var2 ;
var3 = var4 ;
var5 = var6 ;
var7 = Close;
end;
if CamarillaReset then
begin
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 ; | ||
| |
|
| The Following User Says Thank You to statsign For This Useful Post: | ||
chloe31 (02-17-2010) | ||
| | #18 | ||
![]() | Re: Automatic Pivots Calculation - Help Quote:
Actually Blow Fish, if I consider it time well spent, how can you judge from me that it's a waste of my time? If I can help Chloe, I will and thanks for mentioning the link again... I'll check it. Anyway, I know that you're a good contributor as are the others and thanks for the comments. And it's Ranger not ranger. | ||
| |
|
| The Following User Says Thank You to Ranger For This Useful Post: | ||
chloe31 (02-17-2010) | ||
| | #19 | ||
![]() | Re: Automatic Pivots Calculation - Help @Blowfish, I have well understood your message. As I have already written, I will try to work this week-end in order to code something, based on your inputs (threat ,..). Nevertheless, can you tell me what is the interest to have a coding forum here if we cannot request help for coding without being critisized ? @Ranger, Many thanks for your help, but I do not want you to sprend a lot of time on this code. I do not want you to waste you time. I do not know how to thank you ! @ Statsign, Thank you very much for having modified the code coming from Ranger. I do not know how to thank you ! I will try this code this week-end, and I will try to code something. I will keep you informed. Thank you a lot ! Best regards Chloe | ||
| |
|
| | #20 | ||
![]() | Re: Automatic Pivots Calculation - Help Quote:
Simply in response to Ranger.It's your time do as you please with it If you will learn something from it great. If you want to help someone that is to 'busy' to help themselves that is fine too. The aforementioned thread has 2 or 3 (or maybe more) solutions to the problem presented. Give a man a fish and you feed him for a day teach a man to fish and you feed him for life. You can lead a horse to water but you can not make him drink. Ok enough of the proverbs already. I would have posted code that plot pivots, mid points, labels, price labels, irregular sessions, split sessions, multiple sessions (e.g. 2.5 days 5 days) weekly pivots, monthly pivots, etc. etc. Unfortunately I am a little busy right now. Last edited by BlowFish; 02-18-2010 at 12:31 PM. | ||
| |
|
| | #21 | ||
![]() | Re: Automatic Pivots Calculation - Help You are a very funny guy !! For your information, yesterday, I spent 2 hours from 1 amto 3 am, trying to find a solution to my problem, but with no succes. I am not as good as you at coding I will try again this week end. So, please stop writting this kind of sentence "someone that is to 'busy' to help themselves ", as it is absolutly wong for me. How can you judge me, you do not know me !! Best regards, Chloe | ||
| |
|
| | #22 | ||
![]() | Re: Automatic Pivots Calculation - Help really funny i am not trying to be sarcastic, i am not a programmer, i know the pain you are going through. but if you would just stop banging your head... and R-E-A-D, you will find that the 2 really nice regular contributors here have already given you the answer to your problem in post #2 and post #3. (or should I say, pointed you to the right direction) in case you still don't understand what they are talking about, let me paraphrase... Your request is not unique, nor was it asked the first time. Various methods have been discussed. The solution to your quest has already been DONE. The code is posted in the "thread". You can adjust it to meet your need. The name of the thread is called "plotting globex highs and lows" or something like that... Furthermore, there are several interesting approach to solve the problem, and they are all presented in the thread. hope the above helps
__________________ ..........This is a terribly difficult question to answer. The only satisfactory answer is: "It depends"... Last edited by Tams; 02-18-2010 at 03:33 PM. | ||
| |
|
| | #23 | ||
![]() | Re: Automatic Pivots Calculation - Help I have well understood your advise. I fully agree with you. Let me read the thread this week-end. I will keep you informed next week. Thank you, Regards, Chloe | ||
| |
|
| The Following User Says Thank You to chloe31 For This Useful Post: | ||
Tams (02-18-2010) | ||
| | #24 | ||
![]() | Re: Automatic Pivots Calculation - Help Quote:
Gone through allot of your programming solutions and excellent tips. You do nice work! | ||
| |
|
| The Following User Says Thank You to Ranger For This Useful Post: | ||
Tams (02-18-2010) | ||
![]() |
| 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 |