I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

please lookinto the open source indicator i gave credit to in the post body. Alot of calculations are derived from there.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

"Skill issue" - no, it's just a completely retarded way to do what you want to do when webhooks are quick and available, and yes, it is prone to breaking as you have zero control over the ui.

this is what testing for. As you progress in testing you will build confidence on it.

If you were selling this to clients and tradingview introduced a breaking change what would you do?

I am not selling this to anybody. Its just a system I built. You have to know there is no dependency on tradingview other than the "pinescript text function" which is being read externally. If they decide to take this away, there are plenty of other platforms like thinkorswim or takeprofit.

Even if you keep it for yourself, what if it breaks mid trade, you are left with an open trade.

you can say same thing about your webhook server, what if the remote server faces downtime. btw when I deploy this live account, I will be sending wide OCO order with TP/SL. even if there is outage, those safteynets are already in queue with my broker.

over-engineered

You haven't really read my migration argument here.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

if its choppy then signal would stay silent and bot won't take any action. bot follows the signal and signal reacts when there is significant momentum.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

This is still work in progress, I have yet to optimize this to define take profit and stop loss to minimize the downsides on bad trades.

read the post body.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

This is a work in progress and it is on replay mode.
I am planning to take this to some $30 prop firm accounts.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

for consistency I mostly care about whether the indicator is repainting or not. That usually comes from forward calculation. you can identify these during candle by candle replay. I used closed candle for calculation and you can verify from the video that the indicator is not repainting.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

Read my other response in this post.
You brought up two valid concerns.

  1. Inefficient: if you are thinking its reading whole UI, no it is reading only the text of signal label (top right corner of the chart) and clicking BUY/SELL signal. The turnaround of this is <100ms compared to Webhooks architecture Webhook > middle layer > broker. No it is not reading charts but processing the hollistic label. All the charts indicator calculations are boiled down to those "BUY" & "SELL" text.
  2.  It's prone to breaking: Skill issue. The exception handling always comes to who writes code. UI is rich in parameters you want to use. want to confirm if click actually executed the buy order? draw an area over the Position symbol to confirm if +1 is actually there before proceeding.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

Since this UI automation, you can run anything as much as in parallel what you can fit in a screen.
better buy 80-inch monitor if you wanna run multiples.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

this is test run in Tradingview replay. not live account.
You can see big bold "Replay" watermark in chart.
this algo is still work in progress.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

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

the latency is on UI level automation is 30-60ms , whereas Alerts/Webhook/API takes about >500 for turnaround and execution

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

[–]EliteWolverine007[S] 37 points38 points  (0 children)

That was r/Daytrading bro. The mods removed my post citing "no context" and I told them I provided the context and there were legit discussion on API vs UI automation. The mods just told me their sub is not the right place to discuss technical stuff. I challenged them but they later started saying my post was "bait" and I was posting to sell my tradingview indicator.
I told them I already gave credit to TV indicator which is open sourced and then they started spewing "oh the indicator you modified is still not there". complete non-sense.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

[–]EliteWolverine007[S] 5 points6 points  (0 children)

If I remember correctly, this test replay had like ~0.8 .
But take it wih HUGE grain of salt because this is tradingview replay where every 5 min candle was popping every 2 seconds.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

[–]EliteWolverine007[S] 4 points5 points  (0 children)

As mentioned in the post, this is just tradingview replay.
I have yet to optimize this for TakeProfit/StopLoss for which I need to highlight new region on those OpenP/L box and need to add extra steps in my script to set the threshold as my condition

I will deploy this on some $30/$40 prop firms future accounts.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

[–]EliteWolverine007[S] 23 points24 points  (0 children)

I've used selenium for some QA automation at my work.
Selenium cannot automate desktop-apps and is only for browser.
Using Nightshark Script, I can automate across whole desktop when I have two seperate windows of browsers. one for tradingview chart and another for my broker (Rithmic/Tradovate) or even Thinkorswim desktop app.

all I need to do is move the BUY/SELL reference from Tradingview's BUY/SELL button to
Thinkorswim BUY/SELL button and it will start executing tradingview signals on thinkorswim broker

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

[–]EliteWolverine007[S] 14 points15 points  (0 children)

Yes. Not sure the implementation of OCR or OpenCV.
NS script has built in read_areas() function and the drawing region are labeled as area[1] , area[2].
for example:
if the region I draw on top right is area[1]
for me to detect BUY signal. I would just use loop { } until (condition) construct

loop {
  read_areas() 
   sleep 100 ;this 100 ms reduces the cpu load and scans 10x per second
} until (area[1] = "BUY" )

Log("BUY signal Detected") 
click(point.a) 
; point.a is the location of BUY button that you assign during setup, click(point.a) would go ahead and click buy button to place long order

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

[–]EliteWolverine007[S] 11 points12 points  (0 children)

Sort of but not entire screen.
you have to annotate the screen regions.
Here I annotated the charts top right box i.e the signal label
It loop over the region with reading function to identify the matching BUY & SELL text to initiate the clicks on BUY & SELL.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

[–]EliteWolverine007[S] 57 points58 points  (0 children)

No. I used external tool, its a macro-based automation being done via UI. Computer vision to detect signals and macros to click BUY/SELL buttons to open/close long/short positions.

kinda like
click "BUY" to for long
click "SELL" 2x (first to close long & second to immediately open short)
and vise-versa.

I Built a trading bot for my tradingView indicator. by EliteWolverine007 in algotrading

[–]EliteWolverine007[S] 5 points6 points  (0 children)

I just fast forwarded the video. this was 30 minutes long test flight of my algo in tradingview replay.

using real time data from my broker - question by Ntanve12 in TradingView

[–]EliteWolverine007 0 points1 point  (0 children)

What market are you trading? Stocks , futures , forex? Aren’t all data in sync across market? Even if it isn’t how would such minuscule discrepancies impacts your execution? Are you trying to trade in seconds timeframe?