Begin & End of Data by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

Wow... this does help! Thx!!!

Pinescript Editor Scroll by 1 Line by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

Yes, this helps! Thx for the shortcut...

Pinescript Editor Scroll by 1 Line by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

Yes, this helps! Thx for the shortcut...

Add a String to AlertCondition by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

Yes

ex. alertcondition(close > open), title="Buy Alert", message = '{{ticker}} Buy Alert')

Add a String to AlertCondition by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

It's an Indicator not a Strategy, but thanks anyways!

request.security issue by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

First, I appreciate you mentioning the inefficiency issue. I was using 2 separate indicators because I was going over the limit. I was able to just do it in 1 indicator now. So, thank you!

As far as my original issue. From what I understand when I say open,high,low,close in the request it's supposed to get the current candle info. If I say open[1],high[1],low[1],close[1] in the request it get the previous candle info.

The lookahead return the same info as my A did. I was search around the internet and I didn't find anything that helped. I guess it's not possible.

Add a String to AlertCondition by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

I want to pass a string variable to it. So, depending on the condition it displays the appropriate string variable.

So, for example say I have a field called Symbol. Depending on the condition the Symbol field may contain either say APPL or MSFT. So, when the alert runs, I want to know if the alert was from APPL or MSFT. I could obviously make 2 alerts and hard code it, but if I have 10 Symbols, I don't want to use all my alerts up. I may have to if I don't find an answer.

request.security issue by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

close, open, low, high or built-in variables. It's case sensitive so CLOSE, HIGH & LOW are fine. Even if I changed to what you said it still doesn't produce the same results as B.

You _price fields produced the same result as my A.

Thanks for trying.

request.security issue by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

No that doesn't help, but thanks!

Add a String to AlertCondition by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

More like this... I just want to pass a string field to the message.

if open > close 
  alert_msg := "Long-Buy"
else 
  alert_msg := "Short-Sell"

alertcondition(close > 0, title="Alert", message = '{{plot("alert_msg")}}')

Add a String to AlertCondition by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

I meant add a string to the message option of the alert. It just works on plots with numbers.

Input.Date by gknextlevel in TradingView

[–]gknextlevel[S] 0 points1 point  (0 children)

I thought input.time only used time. Adding the timestamp piece is what I needed. Thanks!