Search found 3 matches

Go to advanced search

by mikendo
Mon Sep 19, 2022 12:58 am
Forum: Pine Script Q&A
Topic: is it possible to increment an EMA by a step of 0.1?
Replies: 1
Views: 992
 
Jump to post

is it possible to increment an EMA by a step of 0.1?

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: <a href="https://ibb.co/yNqvxMv"><img src="https://i.ibb.co/yNqvxMv/Screen-Shot-2022-09-18-at-7-52-37-PM.png" alt="Screen-Shot-2022-09-18-at-7-52-37-PM" bord...
by mikendo
Fri Sep 09, 2022 5:39 pm
Forum: Pine Script Q&A
Topic: Profits/Losses are not calculating correctly?
Replies: 0
Views: 5014
 
Jump to post

Profits/Losses are not calculating correctly?

Hello. When I run my strategy in pinescript, it loads my profits in cents ($0.01) and it always says I gained or lost $0.01 regardless of the percent I have actually gained/lost. Example -0.71% of $1000 should be -$7.1 and a gain of 0.83% should be $8.3 My starting capital is $1000. How can I fix th...
by mikendo
Thu Sep 01, 2022 6:39 pm
Forum: Pine Script Q&A
Topic: How can I have my pinescript strategy enter after two conditions are met? (But not necessarily at the same time)
Replies: 2
Views: 1526
 
Jump to post

How can I have my pinescript strategy enter after two conditions are met? (But not necessarily at the same time)

for example: When the MFI gives me a signal for an overbought stock, i wait for a bearish cross of the MACD lines. If this happens, we go short. Similarly, it acts the same way in the opposite direction. An oversold MFI reading and a bullish cross of the MACD lines generates a long signal but we wai...

Go to advanced search