Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

aaa

Pivot with Cash Close Versus Globex

Recommended Posts

Hello

 

I am new in EL...

 

I've found this great forum where I learn a lot

 

I need help to choose beetween the Globex close and the cash close

 

each day I enter manually the cash close (17:35)

 

How to calculate automatically the close of the day before at 17:35 ?

 

ThanX

 

 

inputs:

 

ClotCompense( 3070 ),

ClotCompenseChoice( true );

 

 

DailyHigh = HighD( 1 );

DailyLow = LowD( 1 );

GlobexClose = CloseD( 1 );

 

if PlotDailyPts then begin

 

Range = DailyHigh - DailyLow;

 

 

if ClotCompenseChoice then Begin

PP = ( (DailyHigh + DailyLow + ClotCompense) / 3 ) ;

End

else begin

PP = ( (DailyHigh + DailyLow + GlobexClose ) / 3 ) ;

End ;

Share this post


Link to post
Share on other sites

It's so clear now.

 

I'm on the right way

 

Here is the progress of my test

 

I have the close of yesterday 17:35 until 17:40 where I have the close of the day

 

Thanx sevensa

 

 

 

//----------------------------------------------------------------------

variables:

//----------------------------------------------------------------------

 

Value1 = CalcTime( 2400 , -385 );

if time = Value1 then Value2 = Close ;

 

value0 = Text_New( Date , Time , Low , "" ) ;

Text_SetString( Value0 , NumToStr(Value2 , 0 ) );

 

//----------------------------------------------------------------------

// Attributs

//----------------------------------------------------------------------

 

Text_SetStyle( value0 , 2 , 0 ); //Hor = 0 = To the right of the bar 1 = To the left of the bar 2 = Centered on the bar //Ver = 0 = Beneath the price 1 = Above the price specified for the text object 2 = Centered on the price

Text_SetSize( value0 , 12 );

Text_SetColor( value0 , white );

Share this post


Link to post
Share on other sites

me again

 

I have the close of yesterday 17:35 until 17:40 where I have the close of the day

 

So the pivot jump and is wrong from 17:40 to 22:00

 

I don't know how to keep the yesterday price at 17:35 all the day...

 

variables:

 

PP( 0),

LastOpen( 0),

LastHigh( 0),

LastLow( 0),

LastClose( 0);

 

Value1 = $OHLCPeriodsAgo(0, 1, LastOpen, LastHigh, LastLow, LastClose );

 

Value3 = CalcTime( 2200 , -265 ) ;

if time = Value3 then Value4 = Close ;

 

PP = Round( ( LastHigh + LastLow + Value4 ) / 3, 2 );

 

Plot9(PP, "PP");

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.