Search found 3 matches

Go to advanced search

by SoulSatori
Wed Sep 22, 2021 1:36 am
Forum: Pine Script Q&A
Topic: Assigning to variable based on ticker
Replies: 0
Views: 1408
 
Jump to post

Assigning to variable based on ticker

Hello, I'm wanting to assign a value to a variable based on the ticker. It's for a script using the renko function. Example: gbpusd = 1.05 gbpaud = .056 usdjpy = .268 t = 0.0 if syminfo.ticker == "GBPUSD" t := gbpusd if syminfo.ticker == "GBPAUD" t := gbpaud if syminfo.ticker == "USDJPY" t := usdjpy...
by SoulSatori
Wed Sep 22, 2021 1:29 am
Forum: Pine Script Q&A
Topic: For Loops & Chronological Order
Replies: 2
Views: 1325
 
Jump to post

Re: For Loops & Chronological Order

Never got to thank you for helping me with this. It was a huge help!
by SoulSatori
Fri Jul 02, 2021 5:13 pm
Forum: Pine Script Q&A
Topic: For Loops & Chronological Order
Replies: 2
Views: 1325
 
Jump to post

For Loops & Chronological Order

Hello, I'm trying to make a script with a portion of the parameters below. //Buying Condition In Chronological Order Stochastic Crossover MACD Crossover 10 EMA Crosses Above 20 EMA The Stochastic Crossover must always occur at least 1 Bar before the MACD Crossover Once the Stochastic Crossover occur...

Go to advanced search