Search found 6 matches

Go to advanced search

by podolkerod
Wed Mar 30, 2022 3:39 am
Forum: Pine Script Q&A
Topic: How to create DCA filters?
Replies: 4
Views: 1298
 
Jump to post

Re: How to create DCA filters?

Sure, I will create another thread
by podolkerod
Tue Mar 29, 2022 6:39 am
Forum: Pine Script Q&A
Topic: How to create DCA filters?
Replies: 4
Views: 1298
 
Jump to post

Re: How to create DCA filters?

@processingclouds thank you, it solved my issue. I have another question, let say the script is for Long position only. 1st signal triggered for entry, then 2nd signal is come but higher than the entry price, then 3rd signal that lower than entry price is triggered. How can we prevent the 2nd signal...
by podolkerod
Sat Mar 19, 2022 5:12 am
Forum: Pine Script Q&A
Topic: How to create DCA filters?
Replies: 4
Views: 1298
 
Jump to post

How to create DCA filters?

Hi, it's possible to allow DCA and create DCA filters using the next signal that appear in indicator script like below? (DCA filters = only allowed if signal appears below last signal for Long and only allowed if signal appears above last signal for Short) preview: https://prnt.sc/XvtLH3bkJhzr Here ...
by podolkerod
Fri Feb 11, 2022 6:04 pm
Forum: Pine Script Q&A
Topic: [ASK] Grab Heikin Ashi value for calculation
Replies: 4
Views: 1155
 
Jump to post

Re: [ASK] Grab Heikin Ashi value for calculation

Continue from study case above I try to use tuple for request security. But it's correct or efficient enough the way I write the code? // Security Calls varip security_syminfo_indics = i_HA_data ? ticker.heikinashi ( syminfo.ticker ) : syminfo.ticker [src0_phx_HA, src1_phx_HA, src2_phx_HA, src3_phx_...
by podolkerod
Fri Feb 11, 2022 3:16 am
Forum: Pine Script Q&A
Topic: [ASK] Grab Heikin Ashi value for calculation
Replies: 4
Views: 1155
 
Jump to post

Re: [ASK] Grab Heikin Ashi value for calculation

So you want to use heikinashi for TCI and CSI calculations. Please find the edited code below which pulls both TCI and CSI directly on single request.security. I have cleaned the code also separating your repeated patterns into variables as : useHA = PHX_Use_HA ? ticker.heikinashi(syminfo.tickerid)...
by podolkerod
Thu Feb 10, 2022 3:38 am
Forum: Pine Script Q&A
Topic: [ASK] Grab Heikin Ashi value for calculation
Replies: 4
Views: 1155
 
Jump to post

[ASK] Grab Heikin Ashi value for calculation

I try to get value from HA for used in n1 , n2 and n3 calculation. Do I need to make another security request for each of it? //-------------- // Sources: src0 = open src1 = high src2 = low src3 = close src4 = hl2 src5 = hlc3 src6 = ohlc4 src7 = ta.tr vol = volume // Input Settings PHX_TF = input.ti...

Go to advanced search