I've recently discovered the joy and utility of chart plots. I'm wondering if it is possible to plot a point, line, arrow etc. on the respective candle (5 min Agg) at the exact price point of purchase whenever I enter a trade/purchase a stock. So far I haven't been able to get this to work, and I'm starting to think "EntryPrice" doesn't mean what I think it means.
I've tried this, to no avail-
# Plotting Entry Price
plot Entry = EntryPrice();
Entry.SetPaintingStrategy(PaintingStrategy.horizontal);
Entry.AssignValueColor(Color.WHITE);
Entry.SetLineWeight(3);
Any other way to do this? Ideally I'd like to plot 3 lines together-- one at the entry price, and then one above and one below that price by some offset %, like this-
# Plotting Entry Price Offset
Input Percent_Offset = -10;
plot Offset = EntryPrice() + (EntryPrice() * (Percent_Offset / 100));
Offset.SetPaintingStrategy(PaintingStrategy.horizontal);
Offset.AssignValueColor(Color.YELLOW);
Offset.SetLineWeight(3);
Many thanks,
JRD
I've tried this, to no avail-
# Plotting Entry Price
plot Entry = EntryPrice();
Entry.SetPaintingStrategy(PaintingStrategy.horizontal);
Entry.AssignValueColor(Color.WHITE);
Entry.SetLineWeight(3);
Any other way to do this? Ideally I'd like to plot 3 lines together-- one at the entry price, and then one above and one below that price by some offset %, like this-
# Plotting Entry Price Offset
Input Percent_Offset = -10;
plot Offset = EntryPrice() + (EntryPrice() * (Percent_Offset / 100));
Offset.SetPaintingStrategy(PaintingStrategy.horizontal);
Offset.AssignValueColor(Color.YELLOW);
Offset.SetLineWeight(3);
Many thanks,
JRD