tommyjames Posted March 31, 2022 Report Share Posted March 31, 2022 Hi, Is there any way to reference the highest high or lowest low (basically a price channel) highest(high,5) or lowest(low,5) in a saved order? Thanks Quote Link to comment Share on other sites More sharing options...
Jerry Medved Posted March 31, 2022 Report Share Posted March 31, 2022 no, that would involve basically Paintbars and internal chart objects to compute and cannot be done in a Hotkey Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted March 31, 2022 Report Share Posted March 31, 2022 Hotkeys really have access to the current state of your account and current state of the symbol being referenced. Not the historical data or various computed indicators on the symbol. But I am thinking I can allow paintbars to set a named variable in the chart that would be accessible by any hotkey executed on that chart. That way you could compute any value you wanted based on any indicator and expose it to the hotkey. 1 Quote Link to comment Share on other sites More sharing options...
tommyjames Posted April 1, 2022 Author Report Share Posted April 1, 2022 Thanks Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted April 5, 2022 Report Share Posted April 5, 2022 Tommy, I did the following (I put this in our Help file): You can now use hotkeys and paintbars together to enhance functionality. The way to do this is: * Create a Paintbar or a Scan that calculates some value that you would want to use in your Hotkey when placing a trade. * Use the SetInterVar or the SetChartVar function to pass that value out of the paintbar. * Use the passed value in any hotkey by using the intervar() or chartvar() scripting function in any field The difference between intervar and chartvar values is that the intervar values are per-symbol. That is, a chart's paintbar may set it, but a hotkey may access it on a different chart, or even on a trade ticket or a Level II window. The chartvar value is only available to the hotkey on the chart where you placed the particular paintbar. If you want to test it, email us and we will point you to an exe that has it. Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted April 8, 2022 Report Share Posted April 8, 2022 Also: the SetInterVar and GetInterVar are now available in the Websocket API. Which means that the API will be able to read values set by Paintbars or set values that paintbars can read and use in their calculations or display on charts. Quote Link to comment Share on other sites More sharing options...
tommyjames Posted March 11, 2023 Author Report Share Posted March 11, 2023 Hi Mike, Quick question. If I can now reference lets say the price channel high or low and access it in a saved order as you described above. Lets say I use it to put a protective stop in at the price channel low... and then price moves up... would there be away for the protective stop to stay attached to the price channel? Or would I have to continuously hit the hotkey to keep the stop at the new value? Thanks Quote Link to comment Share on other sites More sharing options...
Mike Medved Posted March 12, 2023 Report Share Posted March 12, 2023 The hotkey actually places the order. If it is a "send" it sends the order to the broker. If it is not a "send" but just a "drop" it drops the capsule on the chart. But it is a "do and forget" thing. If you send or drop another order, it will not replace the previous one, it will add one more... There is a ChangeOrder hotkey that could work, but you would still to hit the hotkey to do that and it works under certain circumstances only. Like on Chart it would change the order over which the mouse is, or if there is only one order, will change that one. 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.