READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Profit Trailing (on close) ..how to convert tick by tick?!

23 replies

Gaudio Fx

Subscriber, bbp_participant, community, 22 replies.

Visit profile

10 years ago #115026

I understand that to have an empirical study to be reported in the live trading is great to have the function that SQ, but we should have the ability to better work on the strategy, once you find a good
These functions allow you to use profit-trailing, breakeven, trailing stop-etc etc .. but for many strategies, especially those more aggressive, wait for the closing of the candle is a function that we do not need.
all these functions (for some strategies) are useless if I have to wait until the closing of the candle!
I state that I work only with tick-real!
but each of breakeven and trailing parameter is set waiting for the closure of the entry candle..why?
hundreds and hundreds of strategies implemented by me are set with the “trailing on close” .. and would be much more efficient with a trailing tick by tick from the entry to the market
surely, wait for the closing of the candle, will help in not fall into overfitting or see good strategies that do not work then live
but it should have the possibility of eliminating this feature once you find a good strategy and then work better output in trailing not waiting for the closing of the candle
does anyone know how to do? I have to change the fil mql? I have to delete or replace some code inside? I have to set the SQ?
Thank you all
Giorgio

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

10 years ago #136635

Hello,

 

when I turn if(!sqIsBarOpen) return(false); into a comment (it is placed in two functions ManageStop & ManageTrades) + I have changed Close[1] to Close[0] I got tick-by-tick profit trailing.

 

You’re another option could be to re-create your strategy using EA Wizard

File: 26.4.png26.4.png

0

Gaudio Fx

Subscriber, bbp_participant, community, 22 replies.

Visit profile

10 years ago #136657

ok thanks a lot again
geektrader, I was not aware that SQ only worked in BAR CLOSE !!
I tried looking in other threads but I was not riuscitop find nothing .. sorry
if I may ask, why this choice? to avoid overfitting? or why else?
 
In any case, I have tried to manually modify the code as indicated but the only thing I can run tick-by-tick is in the “ManageTrades” section .. while for “ManageStop” function, even changing the code as suggested, does not process tick-by-tick and do not understand why
 
I do not know what is wrong .. but I tried everything suggested correctly
if some imagine why, I would be very grateful
anyway thanks a lot

0

geektrader

Customer, bbp_participant, community, 503 replies.

Visit profile

10 years ago #136667

It works only on bar close because you otherwise will have to ALWAYS use TICK data for anything, hence can´t create strategies anymore in bar open or selected timeframe only mode, which would slow down strategy-generation by heaps, there is no reliable tick-data prior to 2007, tick-data is absolutely broker dependent and the amount of ticks each broker sends per minute can differ


🚀 Unlock Your Edge in Automated Forex Strategy Development 🚀

Historical Forex Data Starting From 1987, 28 Pairs, M1, 99% Error-Free, Lifetime Free Updates

0

geektrader

Customer, bbp_participant, community, 503 replies.

Visit profile

10 years ago #136668

…. from anywhere from 50 to 700 ticks per minute. Strategies generated this way DO fail going forward (been there like 50 times in the last 8 years, even with tick-data collected from my broker) and that is surely not something we would like to see in SQ. Just look around, for that exact reason, ANY other strategy generation software (won´t name them here in respect for Mark) work on current bar open or previous bar close only.

 

(Sorry, had to split up the post, otherwise the stupid Forum won´t let me post, just says “Saving post” all the time and doesn´t post it….)


🚀 Unlock Your Edge in Automated Forex Strategy Development 🚀

Historical Forex Data Starting From 1987, 28 Pairs, M1, 99% Error-Free, Lifetime Free Updates

0

mikeyc

Customer, bbp_participant, community, 856 replies.

Visit profile

10 years ago #136674

(Sorry, had to split up the post, otherwise the stupid Forum won´t let me post, just says “Saving post” all the time and doesn´t post it….)

 

I get that error quite a lot geektrader on this forum, though it was just me.  Takes ages to work around.

0

geektrader

Customer, bbp_participant, community, 503 replies.

Visit profile

10 years ago #136675

Yea, this forum-software just absolutely sucks. Would much prefer a standard PHPBB than this crappy one. Also, if you try to re-edit your posts in a to short amount of time, you get blocked completely by the firewall of strategyquant.com for a while…. just bad 🙁


🚀 Unlock Your Edge in Automated Forex Strategy Development 🚀

Historical Forex Data Starting From 1987, 28 Pairs, M1, 99% Error-Free, Lifetime Free Updates

0

Gaudio Fx

Subscriber, bbp_participant, community, 22 replies.

Visit profile

10 years ago #136676

thanks geektrader 🙂

0

kingsimelane

Subscriber, bbp_participant, 3 replies.

Visit profile

4 years ago #276353

hi, those this solution still hold true? i wanna use it for metatrader 5

0

Viewing 8 replies - 16 through 23 (of 23 total)

← 1 2