Search found 2 matches

Go to advanced search

by josh
Fri Dec 23, 2022 3:11 am
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: 1522
 
Jump to post

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

so do you mean that condition 1 is true and then one hour later is false but then condition 2 becomes true that it would still execute? not sure about that one. In this code, the position will be entered only if both condition1 and condition2 are true. If either condition is false, the position will...
by josh
Fri Dec 23, 2022 3:01 am
Forum: Pine Script Q&A
Topic: Error that I can't figure out.
Replies: 1
Views: 1192
 
Jump to post

Error that I can't figure out.

Hi guys, I keep getting this compilation error and can not for the life of me figure out the fix. Compilation error. Line 23: mismatched character 'i' expecting '=' Line 23 is if (close > MA_200 and close < MA_10 and !is_long and !is_short) from the // Check if long buy condition is met block. Any h...

Go to advanced search