Entry time frame Optimization problem

Questions about MultiCharts and user contributed studies.
fepra
Posts: 8
Joined: 08 Mar 2017
Has thanked: 3 times

Entry time frame Optimization problem

Postby fepra » 06 Apr 2018

hello everyone, I'd want to create a Function that lets me optimize the time where I'm putting my entrance commands. I'll let you understand with this example :

Code: Select all

Inputs: startEntry(1800), stopEntry(0200);

if Time >= startEntry and Time <= stopEntry then
begin
etc.
No problem detected when the session both opens and closes during the same day.
Whilst , for example, there's a problem concerning the session of a forex's cross opening at 17 o'clock of day x and closing at 16:59 o'clock of day y. The problem that occurs is : I can't optimize a time frame starting on day x and closing on day y. I mean that I have to optimize the 18:00(day x)- 12:00 (day y) time frame. Is there a way to solve it?
Thanks to whoever is going to help me.

User avatar
Anna MultiCharts
Posts: 560
Joined: 14 Jul 2017
Has thanked: 42 times
Been thanked: 140 times

Re: Entry time frame Optimization problem

Postby Anna MultiCharts » 06 Apr 2018

Hello, fepra!

You can add an additional counter/input for days and specify the time for your existing inputs from 0000 to 2400. This will allow for resetting the hour-minute counter for the day y after the calculation of the day x is performed.


Return to “MultiCharts”