Support Board
Date/Time: Sat, 08 Feb 2025 03:11:29 +0000
Post From: Spreadsheet System - Capture a value for later use?
[2020-06-21 14:27:07] |
Ackin - Posts: 1865 |
Aha, ok that completely explains it then.
So given that the TSM won't work for me after all... any ideas on how to accomplish what I'm looking to do? Specifically I'm playing with a Spreadsheet system and am wondering how to implement two ideas: 1. A "time trail" that adjusts say maybe 1 tick every X seconds (but of course doesn't initiate until that many seconds have passed). This way if the momentum of the trade slows down but doesn't actually reverse enough to hit a stop, I'll gradually be locking in profits/reducing risk all the time. 2. I'd like to cancel working orders if they haven't filed within X seconds. I'm playing with a signal that, when it's going to work, generally moves very quickly (I'm placing stop orders to enter, 1 tick outside current price) and if within a few seconds the trade has not filled, then I want to cancel and bail on the signal. But I can't figure out any way to track the time since a signal was given, unless the signal persists over a full bar. what to try calculations to do on a 1 second chart and work with the result in another timeframe? Even Acsil won't solve this for you in a larger timeframe. In general, only information about the start and end time of the Bar is stored. In the meantime, you would have to take time information from your pc or use study output such as: CountDown Timer. |