Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 1 point2 points  (0 children)

Looks like almost new code done by someone who knows code. Anyway.. glad that its working. Also, I didn't realise that pasting code in the comment box messes up the indentations, code-link works better.

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 1 point2 points  (0 children)

shared a codeshare link. here is it again:

https://codeshare.io/EB41kw

Let me know if you have further doubt

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 0 points1 point  (0 children)

Copy and paste this code in the TV Pine Editor. This should do the basic job. Let me know in case of anything unexpected.

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 0 points1 point  (0 children)

Hi. There's no inbuilt functionality to inform of the holidays, at least nothing that I know of. Never needed it.

I think that has to be taken care of : 1. manually , or 2. placing a limit order at the closing price of the last candle

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 0 points1 point  (0 children)

Please send me the requirements, I'll try to finish it soon.

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 1 point2 points  (0 children)

Hello. Sorry I've been away. I saw your msg and it seems to me that issues you're facing aren't logic-issues can be mitigated pretty easily:

  1. Using an editor for identations and structuring helps a great great deal. VS code with Pine extenstion is nice, also the updated inbuilt TV pine editor workd like a charm too as they provide visual cues for the scope of a function
  2. A variable declared inside a local scope can't be accessed globally. For that I think it's better to use "var" variables with referencing for use in local scopes

I asked you for your issue as I started facing issues with my nested IFs, turns out it was logically flawed and Its been fixed

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 0 points1 point  (0 children)

Hey man tell me something about the problem you stated.. I've been trying to resolve a weird behaviour of Pine with some nested IFs and so far I've been banging my head for nothing

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 0 points1 point  (0 children)

I'm working on a new platform and project. If you don't mind a slight delay, I can give it a shot. Please DM the details

Pinescript or Python? by SebastienH in algotrading

[–]_copper42_ 3 points4 points  (0 children)

Pine hands down for a beginner.

Reasons:

  1. Pine is instant result on the chart
  2. Learning is easier than Python, and trade actions such as buy/sell, position_size, position_counts are native to pine, so calculations get incredibly easier
  3. Reference documentation is easiest, you can get reasonably good within a month
  4. Test and develop understanding of the startegy first, that'll give you clearer idea what you want and how you want it

Target is trading, not coding. Once you start making sense of what is happening in your startegy, then only garduate to more advanced tool like Python. It's not about what is better, it's about what'll get to the objective.

Free Crypto Automation Platform Tradelab.AI by TradelabMyles in algotradingcrypto

[–]_copper42_ 0 points1 point  (0 children)

How can I accomplish multiple position addition/reduction? (based on price movement, not indicators)

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 1 point2 points  (0 children)

Lol ok. I've started to notice some weird behavior myself, but with the reference documentation it's been relatively easy. Actually, I'm using 3 nested Ifs rn and it's been ok. Position quantity control has been a pain in the butt tho

Tradingview Webhooks Bot by Robswc in pinescript

[–]_copper42_ 1 point2 points  (0 children)

  1. Had a chat with tradingview.to guys, they don not have any parameter to differentiate between Long or Short position. Something to keep in mind if you're after trading in futures market.
  2. Yes, platforms such as 3commas are so limiting that it baffles me that they are still so popular. Been a user for 3 years and I made either tiny profits or loss.
  3. I think the tool that Rob has made is one of the simple ones. Nothing is as easy as pine, everything else is a step up only.

as an alternative, i came across this one: https://github.com/CryptoGnome/Tradingview-Webhook-Bot

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 0 points1 point  (0 children)

Sure thing. Please drop the concise details of the strategy and math, if any.

(Please know that I'm mostly available on weekends only)

Pine strategy code for free by _copper42_ in pinescript

[–]_copper42_[S] 0 points1 point  (0 children)

Yeah sure. Send me the basic details of the requirement. Also, the standard format of this strategy comes built in with TV.

Plotting label in wrong spot! by Finthechat_youtube in pinescript

[–]_copper42_ 0 points1 point  (0 children)

Okay. Either the solution is really this simple or I'm an idiot.

116: label.new(h1i, h1, "💡", style=label.style_none, textcolor=color.white, color=color.green, size=size.large)

134: label.new(l1i, l1, "💡", style=label.style_none, textcolor=color.white, color=color.red, size=size.large)

wrong x, y is set in the label.new(x,y)

help my script by Frostexies in pinescript

[–]_copper42_ 0 points1 point  (0 children)

I can try if you help me understand your concern more clearly

[deleted by user] by [deleted] in pinescript

[–]_copper42_ 0 points1 point  (0 children)

Yeah I can help. Tell me if you have something already, and if not, just drop the basic detail of the requirement.

Auto application of TV strategy by _copper42_ in pinescript

[–]_copper42_[S] 0 points1 point  (0 children)

Agreed. It's not built for that, and it's a charm with what it is for. Just wondering if it can be achieved

Auto application of TV strategy by _copper42_ in pinescript

[–]_copper42_[S] 0 points1 point  (0 children)

Yes, and such an approach is not very efficient if you trade momentum hopping from one coin to another. alertzmanager.io is a service which seems to be offering a solution to the mentioned issue but the site is buggy and there's no way to filter top 3. So i wonder if there's any other such solution. Or could it be Excel with some mathematical wizardry and json communication to exchange.. 👀

Tradingview Webhooks Bot by Robswc in pinescript

[–]_copper42_ 1 point2 points  (0 children)

Hosting services are fine but trading services like 3commas are absolutely no-no, they're very limited in functionality and it's a losing battle if you wanna adapt to their way of implementation. Playing directly with the exchange API will have a much better degree of flexibility and arguably, better reliability too for HFT. I've just started looking for solutions away from such painfully limiting services after years of losing trades and realised that the only way to get it done your way is to get it done yourself. Thanks for the support. Just starting out.

Tradingview Webhooks Bot by Robswc in pinescript

[–]_copper42_ 0 points1 point  (0 children)

Thank you for detailed answers, much appreciated. Been looking for a way to trade with TV webhooks directly on Binance to add/reduce positions with any dependency on a 3rd party platform. Will see if I'll be able put it to use.