Posted By: SBGuy
enterTrade() with TMF - 04/21/22 16:21
Hi, trying to use enterTrade() with a TMF for the first time.
https://zorro-project.com/manual/en/buylong.htm
If the TMF function name is assignedTMF(), do I simply make T.manage = (void *) assignedTMF() like below?
It compiles without any errors.
Thanks!
https:/
If the TMF function name is assignedTMF(), do I simply make T.manage = (void *) assignedTMF() like below?
It compiles without any errors.
Thanks!
Code
TRADE T; memset(&T,0,sizeof(T)); T.tEntryDate = wdate(0); T.flags = TR_OPEN|TR_LONG; strcpy(T.Skill,Asset); // Asset T.nID = 1000000+TradeID; T.nLots = TradeLots*Multiplier; T.fStopLimit = Stop; T.fTrailLimit = Trail; T.fEntryPrice = TradeUnderlying; T.manage = (void *) assignedTMF(); enterTrade(&T);