Kasper Posted January 20, 2022 Report Share Posted January 20, 2022 I get following error when switching from default TIF through conditional/var. Saved Order Error: There is an error in XML document (1, 216). Instance validation error: 'gTIF' is not a valid value for global::MT.Trading.OrderTimeInForce. "Condition": "RegSession=false", "Then": { "gTIF": "Day_ext" I am this as global conditional because second/third legs don't use trading default TIF on chart except for first leg. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 20, 2022 Report Share Posted January 20, 2022 can you export this particular hotkey/saved order and send it to me and tell me exactly what you were doing when this happened? Quote Link to comment Share on other sites More sharing options...
Kasper Posted January 21, 2022 Author Report Share Posted January 21, 2022 (edited) Hi Mike, Hotkey fie is attached. Nothing special activity, just a long order on chart using bead prices. With Price beads, the editor does not save any typed changes to prices and beads disappear when symbol is switched on chart. Thank you. Beads Long.txt Edited January 21, 2022 by Kasper Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 21, 2022 Report Share Posted January 21, 2022 1. you see those red underlines for the StopPrice and LimitPrice on the second and third leg? They are there for a reason. Instead of bead(2) you should do offset(bead(2)-bead(1)) .. same for 3. 2. you set nTIF in variables but I don't see it used anywhere. You said you have some global var set - do you use it in this order? Quote Link to comment Share on other sites More sharing options...
Kasper Posted January 21, 2022 Author Report Share Posted January 21, 2022 Sorry, I forgot I had deleted TIF field before exporting hotkey. The problem with TIF assignment through variable persists in any hotkey. Something as simple as following: { "Vars": { "nTIF": "Day_Ext", "If": [] }, "Command": { "Disabled": false, "Order": { "Drop": "true", "Send": "false", "ConditionalType": "None", "Legs": [ { "OrderType": "Limit", "Action": "Buy", "LimitPrice": "Mid", "TIF": "nTIF" } ] } } } Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 21, 2022 Report Share Posted January 21, 2022 hm ok i see. Checking Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 21, 2022 Report Share Posted January 21, 2022 Ok - for one thing it should be "Day_ext" not "Day_Ext" - capitalization matters for that one. Second - I fixed it so it works jerry will put it up. 1 Quote Link to comment Share on other sites More sharing options...
Kasper Posted January 21, 2022 Author Report Share Posted January 21, 2022 Wow.. you guys are amazing each and every time I need your help. Can't thank you enough. Can you look at beads bit I mentioned above when you can. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 21, 2022 Report Share Posted January 21, 2022 Beads - yes they go away when you switch symbols - that's how it should be since each stock has completely different prices. But if you switch back, the beads are remembered, right? Editor - hm something broke there will look. Quote Link to comment Share on other sites More sharing options...
Kasper Posted January 21, 2022 Author Report Share Posted January 21, 2022 Hi Mike, No, beads are not remembered when switch out then back to same symbol. You can flush them by time or if price has moved significantly by n%. Thanks Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 21, 2022 Report Share Posted January 21, 2022 Huh. You may be using older ver of MT. Do you know what the link is to the latest exe? If not email support@medvedtrader.com and I will send it to you. Quote Link to comment Share on other sites More sharing options...
Kasper Posted January 21, 2022 Author Report Share Posted January 21, 2022 Yes, I have the link for download, otherwise whatever MT suggests is latest beta available to install. I was using 9485.300, I just updated to 9485.305. TIF issue is fixed. Thank you. Beads price editor is now working as well. Beads are still forgotten when symbol is changed and changed back. Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted January 22, 2022 Report Share Posted January 22, 2022 @Kasper please update to "Latest" build again from the same URL we gave you previously Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 22, 2022 Report Share Posted January 22, 2022 Also - go to Settings / Trading / General - at bottom two Bead Settings - turn on the last one. Quote Link to comment Share on other sites More sharing options...
Kasper Posted January 22, 2022 Author Report Share Posted January 22, 2022 Hi, Thanks for update. I installed 307. Bead prices now show on all charts of same symbol with trading enabled. But changing symbol on chart still clears them permanently. I have both checkboxes on for trade beads under Trading/General. Is Save between session refer to Chart session or trading day session? Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 22, 2022 Report Share Posted January 22, 2022 Please send your settings to us - from Help / Send Settings option. Also - how do you change symbol - type it or changing the linked one? Quote Link to comment Share on other sites More sharing options...
Kasper Posted January 22, 2022 Author Report Share Posted January 22, 2022 I sent you the settings. I mostly change symbol by clicking on linked watchlist, but behaviour is same if I type symbol. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted January 24, 2022 Report Share Posted January 24, 2022 Ok now that beads are saved/restored ok - just a note that you have lots of charts and they are all set to 120 days. Switching is slow because it has to load all that data in. Do you really need 120 days? If you do 20, the switching of symbols will be quite a bit faster and the memory usage will go down. Quote Link to comment Share on other sites More sharing options...
Kasper Posted January 24, 2022 Author Report Share Posted January 24, 2022 Thank you Mike for the fix. I had turned up to 120 days to test new CPU and data feed. Faster CPU improved performance enough for to me forget about the setting. I don't need that much data all the time. But once in a while for a single symbol, I go back longer period. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.