Page 1 of 1

can a strategy working on both tick and candle level?

PostPosted: Mon Jan 07, 2019 11:17 pm
by csshine
Hi, Dear
As I know, If I do not import helper.lua, the strategy is working on tick level. If import helper.lua, the strategy is working on candle level.
But I want a strategy check open order on tick level and close order on candle level. Is it possible the implement this idea?
Thank you for help!

Re: can a strategy working on both tick and candle level?

PostPosted: Fri Jan 11, 2019 8:37 am
by Apprentice
viewtopic.php?f=28&t=2712
You can use End of Turn_Live Execution Strategy Template.lua as a template.

Re: can a strategy working on both tick and candle level?

PostPosted: Fri Feb 26, 2021 5:01 pm
by helenoftroy
Im looking to do the opposite. I have a period (m15) indicator / entry /exit strategies all working fine.
i would like to build a trailing stop that runs on ticks in parallel that may or may not be triggered before exit.
is this possible? I feel its probably quite basic but I cant figure out yet how to do it... any nudge in the right direction would be much appreciated :) thanks in advance

Re: can a strategy working on both tick and candle level?

PostPosted: Sat Feb 27, 2021 4:11 am
by Apprentice
Your request is added to the development list.
Development reference 235.

Re: can a strategy working on both tick and candle level?

PostPosted: Sat Feb 27, 2021 4:33 am
by helenoftroy
That's great. Thank you.

Re: can a strategy working on both tick and candle level?

PostPosted: Wed Mar 03, 2021 1:13 pm
by Apprentice
FXTS2 has a built-in trailing stop. All you need is to assign valuemap.TrailStepStop = trailing;
in the request

Re: can a strategy working on both tick and candle level?

PostPosted: Fri Mar 05, 2021 2:28 pm
by helenoftroy
Ahh - yes I've got that working now thanks.

I realise the challenge is to apply a breakeven strategy working on ticks whilst trading different time frame for entry/exit. How would you approach this? Thanks in advance. :)

Re: can a strategy working on both tick and candle level?

PostPosted: Sat Mar 06, 2021 7:16 pm
by helenoftroy
Ive been a bit unclear in previous posts sorry Im not a trader.
Im trying to use the “end of turn” template.
My entry is based on period logic.
But once i have a position i would like to use tick stream not period stream with a breakeven strategy.
Is this possible using this template?
Im struggling to mix streams? Is this possible?
TIA
H