[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Forex ribbon after midnight



PureBytes Links

Trading Reference Links

OK 

Have figure this out eventually.

Just in case it helps anyone : code the start and end of sessions separately and then use OR:


_SECTION_BEGIN("Europe Session");
Europeswitch = ParamToggle("Europe Session","Off|On",1);
EuropeStart = Param("Europe Start", 160000, 130000, 170000,010000); //Perth DST : Europe Starts 16h00, else 14h00
EuropeEnd = Param("Europe End",030000,000000,020000,010000); //Perth DST: Europe Ends 02h00, else 00h00
Europetime = TimeNum() >= EuropeStart OR TimeNum() <= EuropeEnd;
EuropeColor = IIf( EuropeTime,ParamColor("Europe Session",colorBlue), colorWhite);
_SECTION_END();

// Then...

Plot ( IIf(Europeswitch==1, 3, -1e10), "Europe ", europecolor, styleArea | styleNoLabel | styleOwnScale | styleNoTitle, -3.75, 95);

Now to tackle the Pivots.

Regards.

ChrisB




kris45mar <kris45mar@xxxxxxxxx> wrote:                                  Hello all.

I am looking for some conceptual coding help here.

I currrently plot a ribbon to show European forex trading time using this for the close of the European session...

Europeclose = Param("Europe Close", 230000,220000, 240000, 010000);

How can I plot this ribbon to end after midnight Perth time?

If I use

Europeclose = Param("Europe Close", 230000,220000,010000, 010000);

I obviously get no result because 010000 ( 1 AM ) should be maximum value greater than the minimum value of 220000.

I am trying to get the blue ribbon to plot beyond midnight in the attached png.

Any pointers in the right direction would be appreciated.

Regards

ChrisB

   

---------------------------------
Access over 1 million songs - Yahoo! Music Unlimited.
     
                       

 
---------------------------------
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.15.4/563 - Release Date: 12/2/2006 9:59 AM