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
Exittime with Point & Figure Strategy
- Stan Bokov
- Posts: 963
- Joined: 18 Dec 2009
- Has thanked: 367 times
- Been thanked: 302 times
Re: Exittime with Point & Figure Strategy
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.
TJ would be more of a help in terms of proper coding syntax, he's the script guru, I'm not a specialist.
- Stan Bokov
- Posts: 963
- Joined: 18 Dec 2009
- Has thanked: 367 times
- Been thanked: 302 times
Re: Exittime with Point & Figure Strategy
More on that here - viewtopic.php?f=1&t=8414&p=39227&hilit= ... ter#p39227"RecalcLastBarAfter " sounds interesting never came accross it before. Look foward to TJ's solution.
Also documentation coming soon, plus videos.
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: Exittime with Point & Figure Strategy
If you want to execute intra-bar, you have to enable IntrabarOrderGeneration (IOG).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
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