Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 02-17-2010, 11:38 AM   #17

Join Date: Feb 2008
Location: charleston
Posts: 63
Ignore this user

Thanks: 7
Thanked 21 Times in 16 Posts



Re: Automatic Pivots Calculation - Help

added inputs for session times
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 ;
statsign is offline  
Reply With Quote
The Following User Says Thank You to statsign For This Useful Post:
chloe31 (02-17-2010)
Old 02-17-2010, 11:46 AM   #18

Join Date: Oct 2009
Location: Port St Lucie
Posts: 62
Ignore this user

Thanks: 13
Thanked 29 Times in 21 Posts



Re: Automatic Pivots Calculation - Help

Quote:
Originally Posted by BlowFish »
Chloe I think the reason people are reticent is that you are expecting them to spend time to help but you are "too busy" to try to help yourself. I guess you can see how this might look lazy? If you are too busy to devote any time to this then perhaps you should wait until you have half an hour or so to spare?

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.
Blow Fish

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.
Ranger is offline  
Reply With Quote
The Following User Says Thank You to Ranger For This Useful Post:
chloe31 (02-17-2010)
Old 02-17-2010, 03:51 PM   #19

Join Date: Mar 2009
Location: Toulouse
Posts: 24
Ignore this user

Thanks: 14
Thanked 2 Times in 2 Posts



Re: Automatic Pivots Calculation - Help

Hello Everybody,

@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
chloe31 is offline  
Reply With Quote
Old 02-18-2010, 12:22 PM   #20

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,272
Ignore this user

Thanks: 129
Thanked 1,038 Times in 694 Posts



Re: Automatic Pivots Calculation - Help

Quote:
Originally Posted by Ranger »
Blow Fish

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.
Edit: I should say this is not to chastise Chloe, they seem to have had the brunt of it recently 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.
BlowFish is offline  
Reply With Quote
Old 02-18-2010, 02:56 PM   #21

Join Date: Mar 2009
Location: Toulouse
Posts: 24
Ignore this user

Thanks: 14
Thanked 2 Times in 2 Posts



Re: Automatic Pivots Calculation - Help

Blowfish,

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
chloe31 is offline  
Reply With Quote
Old 02-18-2010, 03:16 PM   #22

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,590
Ignore this user

Thanks: 2,027
Thanked 1,402 Times in 862 Posts



Re: Automatic Pivots Calculation - Help

this is funny
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.
Tams is offline  
Reply With Quote
Old 02-18-2010, 03:34 PM   #23

Join Date: Mar 2009
Location: Toulouse
Posts: 24
Ignore this user

Thanks: 14
Thanked 2 Times in 2 Posts



Re: Automatic Pivots Calculation - Help

Tams,

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
chloe31 is offline  
Reply With Quote
The Following User Says Thank You to chloe31 For This Useful Post:
Tams (02-18-2010)
Old 02-18-2010, 04:17 PM   #24

Join Date: Oct 2009
Location: Port St Lucie
Posts: 62
Ignore this user

Thanks: 13
Thanked 29 Times in 21 Posts



Re: Automatic Pivots Calculation - Help

Quote:
Originally Posted by Tams »
this is funny
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
Tams

Gone through allot of your programming solutions and excellent tips.

You do nice work!
Ranger is offline  
Reply With Quote
The Following User Says Thank You to Ranger For This Useful Post:
Tams (02-18-2010)

Reply

Tags
pivot, price volume relationship

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

All times are GMT -4. The time now is 05:29 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.