Exittime with Point & Figure Strategy

Questions about MultiCharts and user contributed studies.
file
Posts: 1
Joined: 13 Oct 2010

Exittime with Point & Figure Strategy

Postby file » 02 Jun 2011

Hello,
is it possible to close a position at a specific time like 1630 with a Point&Figure Strategy?
The formula - close next bar at market - does not work because with P&F Charts next bar can
begin much later then the specific exit time.

Thanks for help

User avatar
Stan Bokov
Posts: 963
Joined: 18 Dec 2009
Has thanked: 367 times
Been thanked: 300 times

Re: Exittime with Point & Figure Strategy

Postby Stan Bokov » 02 Jun 2011

You can just do a timed exit by adding a condition for checking the time. You can check the MP to make sure you send the appropriate order. You can then use the RecalcLastBarAfter to make sure your script calculates at the time regardless of whether there are any ticks.

TJ would be more of a help in terms of proper coding syntax, he's the script guru, I'm not a specialist.
These users thanked the author Stan Bokov for the post:
SUPER

SUPER
Posts: 622
Joined: 03 Mar 2007
Has thanked: 99 times
Been thanked: 80 times

Re: Exittime with Point & Figure Strategy

Postby SUPER » 02 Jun 2011

"RecalcLastBarAfter " sounds interesting never came accross it before. Look foward to TJ's solution.

User avatar
Stan Bokov
Posts: 963
Joined: 18 Dec 2009
Has thanked: 367 times
Been thanked: 300 times

Re: Exittime with Point & Figure Strategy

Postby Stan Bokov » 02 Jun 2011

SUPER wrote:"RecalcLastBarAfter " sounds interesting never came accross it before. Look foward to TJ's solution.


More on that here - viewtopic.php?f=1&t=8414&p=39227&hilit=recalclastbarafter#p39227

Also documentation coming soon, plus videos.

User avatar
TJ
Posts: 6550
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 965 times
Been thanked: 1892 times

Re: Exittime with Point & Figure Strategy

Postby TJ » 02 Jun 2011

file wrote:Hello,
is it possible to close a position at a specific time like 1630 with a Point&Figure Strategy?
The formula - close next bar at market - does not work because with P&F Charts next bar can
begin much later then the specific exit time.

Thanks for help


If you want to execute intra-bar, you have to enable IntrabarOrderGeneration (IOG).

example:

Code: Select all

[IntrabarOrderGeneration = true;]

if currenttime = 1630 then
begin
    {--- put your exit orders here ----}

    Sell ("LX") next bar at market;
    BuytoCover ("SX") next bar at market;

end;



for more information on IntrabarOrderGeneration:
EasyLanguage Essentials Programmers Guide
Intra-bar Order Generation... pg 82


Return to “MultiCharts”