Search found 17 matches

Go to advanced search

by zwp
Tue Jan 03, 2023 4:46 pm
Forum: General Trading Discussions
Topic: sparing partner needed
Replies: 0
Views: 8806
 
Jump to post

sparing partner needed

Hey Traders, I am progressing in my journey as a beginner-algo-trader. As I am testing and fine-tuning bunch of my fist strategies, I have discovered a lack of a sparing partner/mentor/coach. Somebody who would confirm that I am on the right path, or tell me that what I do is sheer nonsense. What do...
by zwp
Thu Dec 15, 2022 12:22 pm
Forum: Pine Script Q&A
Topic: how to modify
Replies: 1
Views: 937
 
Jump to post

Re: how to modify

Hi. not sure what you wanted to achieve. I believe you wanted to count number of candles above ma in last 999 candles. If yes, here is the solution: //@version=5 indicator("dg") src = input(close, "Source") ma = ta.sma(src, 20) max=0 for i = 1 to 999 if close[i] > ma[i] max+=1 plot(max)
by zwp
Tue Dec 13, 2022 4:55 pm
Forum: Pine Script Q&A
Topic: Position Size Reduction During Drawdowns
Replies: 0
Views: 5431
 
Jump to post

Position Size Reduction During Drawdowns

Hi Traders, I have a question to you: Did you ever came across the system/theory reducing a position size according to the size of the drawdown? Let me try to illustrate what I mean. Let's assume that I created a profitable strategy with the max drawdown 15%. Although I am able to handle this kind o...
by zwp
Tue Nov 22, 2022 9:13 am
Forum: Pine Script Q&A
Topic: Stop Loss should trigger in same bar as entry
Replies: 1
Views: 937
 
Jump to post

Re: Stop Loss should trigger in same bar as entry

Hi, can you copy full code. Obviously beginning is missing. And copy it as a code, please - otherwise format gets broken. Will have a look :)
by zwp
Mon Nov 21, 2022 4:39 pm
Forum: Request Scripts
Topic: Example of a simple strategy
Replies: 1
Views: 3370
 
Jump to post

Re: Example of a simple strategy

Hello, here is my solution to your request. Happy to get feedback //@version=5 strategy("daily price comparison", overlay=true) //get user input i_timeStart = input.float(12.00, 'starting time of session') i_timeEnd = input.float(13.00, 'starting time of session') i_tradeDuration = input.float(3.00,...
by zwp
Sat Nov 19, 2022 4:21 pm
Forum: Pine Script Q&A
Topic: position size calculation using prices instead of pips(points)
Replies: 0
Views: 5980
 
Jump to post

position size calculation using prices instead of pips(points)

Hi Traders, finishing Mastery course I came to the lesson about calculating position size. As for beginner calculating pips to points, risks etc seems to be fairly complex, I was wondering, if position size calculator can work with "just prices" to simplify the code. I compared this code with the pi...
by zwp
Wed Oct 19, 2022 7:41 am
Forum: Pine Script Q&A
Topic: blank persistent variable
Replies: 2
Views: 1441
 
Jump to post

Re: blank persistent variable

Thank you!
by zwp
Sun Sep 04, 2022 10:48 am
Forum: Pine Script Q&A
Topic: blank persistent variable
Replies: 2
Views: 1441
 
Jump to post

blank persistent variable

Hey all,
I have one short question. Is:

Code: Select all

var float t_stop = na
the same as

Code: Select all

var t_stop = 0.0
if not, please can you explain the difference in your answer.
Thanks upfront.
by zwp
Mon Dec 13, 2021 4:25 pm
Forum: Pine Script Q&A
Topic: Recommended trading set up - automation vs. manual
Replies: 5
Views: 4725
 
Jump to post

Re: Recommended trading set up - automation vs. manual

Super good. thanks for sharing your experience. Will do the same!
by zwp
Thu Dec 09, 2021 2:57 pm
Forum: Pine Script Q&A
Topic: Recommended trading set up - automation vs. manual
Replies: 5
Views: 4725
 
Jump to post

Re: Recommended trading set up - automation vs. manual

Thanks @dusktrader I would like to go for as much automation as possible. Working full time it might be difficult to respond on all alerts in time and/or I might miss some opportunities on lower time frames.

Go to advanced search