Skip to content
FAQ
Login
Register
Board Index
Pine Script Discussions
Pine Script Q&A
Unanswered topics
Active topics
FAQ
Search
Login
Register
is it possible to increment an EMA by a step of 0.1?
Post Reply
Print view
2 posts • Page
1
of
1
mikendo
Pine Script Rookie
Posts:
3
Joined:
September 1st, 2022
is it possible to increment an EMA by a step of 0.1?
Quote
Mon Sep 19, 2022 12:58 am
i'd like to be able to increment by 0.1 so i can adjust it in my input settings. Is it possible? Please have a look at my code and the output:
https://ibb.co/yNqvxMv
processingclouds
Pine Script Master
Posts:
115
Joined:
January 30th, 2022
Re: is it possible to increment an EMA by a step of 0.1?
Quote
Sun Feb 05, 2023 10:52 pm
Hey,
You misunderstand the second parameter, it is telling how many bars to look at. This has to be an integer value and not float.
So change input.float to input.int
Now your part on incrementing by 0.1 , what are you trying to increment?
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post Reply
Print view
2 posts • Page
1
of
1
Return to “Pine Script Q&A”
Jump to
Welcome To The Pine Scripters Network!
News & Announcements
Introductions
Pine Script Discussions
Pine Script Q&A
Pine Script Scholars
Pine Script Masters
Show & Tell / Request
Share Your Scripts
Request Scripts
Trading Discussions
General Trading Discussions
Feedback & Support
Feedback & Suggestions
Request Support