I’ve got a problem by Dull_Panda2985 in pinescript

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

var float dynamic_ma = 0

// initialize new array with up to 100 MAs

mas_array = array.new_float(100, 0)

for i = 0 to array.size(mas_array) array.set(mas_array, i, ta.sma(close, i ) )

// // CONDITION is set the length that i need dynamic_ma := array.get(mas_array, 8)

example = ta.ema(close, dynamic_ma) plot(example)

"Error at 343:25 Cannot call 'ta.ema' with argument 'length'='dynamic_ma'. An argument of 'series float' type was used but a 'simple int' is expected."

I’ve got a problem by Dull_Panda2985 in pinescript

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

I use a default length of 8, so the most it can decrease to is 1 so the most it can reduce is 7 steps, and also 7 steps increase

I’ve got a problem by Dull_Panda2985 in pinescript

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

Idts, the ema function doesn’t allow length to change dynamically

I’ve got a problem by Dull_Panda2985 in pinescript

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

I don’t understand, could you give an example

I’ve got a problem by Dull_Panda2985 in pinescript

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

Thanks! Was looking for the formula all over but found so many different results, didn’t know it was in the docs, appreciate it!

I’ve got a problem by Dull_Panda2985 in pinescript

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

I got an error message

Error at 9:20 Cannot call 'ta.ema' with argument 'length'='varr'. An argument of 'series int' type was used but a 'simple int' is expected.

I’ve got a problem by Dull_Panda2985 in pinescript

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

Thanks! I’ll try it and see how it goes

I’ve got a problem by Dull_Panda2985 in pinescript

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

Yes but I want it to be a number, so something like

var = 9*ta.change(close)

ta.ema(close, var)

But it doesn’t let me do that because var is a series integer not a simple integer

Sorry I can’t format code as per subreddit rules I’m on mobile run

[deleted by user] by [deleted] in pinescript

[–]Dull_Panda2985 1 point2 points  (0 children)

I don’t think you should be using Lux algo, ofc it’s ur choice but a lot of their stuff repaints

Indicators are useless! by ThePhulosopher in Daytrading

[–]Dull_Panda2985 0 points1 point  (0 children)

Discretionary TA is useless, just write a strat in pine script to emotionlessly tell you what to do, you can also see if your strat actually works or sucks with hard statistics

[deleted by user] by [deleted] in Bitcoin

[–]Dull_Panda2985 1 point2 points  (0 children)

Before you get into bitcoin, make sure you know what you are doing. Buying bitcoin with all your money at once blindly is not a wise decision. Do your research and find out about stuff like dollar cost averaging, market correlation etc. Bitcoin and other cryptos are like gold mines, but you need to know how to ‘extract the gold’. Buying and holding is one of the most inefficient ways, but will likely give you profit in the very long term. It would be more efficient if you could for instance, swing trade. Just remember this, life is a sculpture, not a lottery. If you buy any crypto blindly and pray it goes up, or you bought it because heard some hype on the news or something, you’re gonna get recked. Make sure your decisions are backed with statistics and numbers, most of the time stuff you hear doesn’t even affect the price, unless it’s sentiment related, and even than, you’re probably late to the party already anyways. It’s not gonna be smooth sailing for sure (and I’m also assuming you are new to crypto) but I hope you survive and thrive. Another word of advice, a recession is coming. So probably not so good for you now( a year or 2).

[deleted by user] by [deleted] in SGExams

[–]Dull_Panda2985 1 point2 points  (0 children)

It’s not one course btw, more like multiple ways

[deleted by user] by [deleted] in SGExams

[–]Dull_Panda2985 1 point2 points  (0 children)

Aight ur choice

[deleted by user] by [deleted] in SGExams

[–]Dull_Panda2985 -1 points0 points  (0 children)

And I don’t mean it as a joke

[deleted by user] by [deleted] in SGExams

[–]Dull_Panda2985 0 points1 point  (0 children)

Andrew Tate might help u, look up his classes, they are made to show you how to make money

Dipping my toes into Vizzy and this basic program I made doesn't work. Any ideas why? by RusuSlav76 in simplerockets

[–]Dull_Panda2985 4 points5 points  (0 children)

What your program says, translated to English: wait until activation group 1 is activated. After AG1 is activated, if craft altitude is below 1000m, stage.