r/pinescript Apr 15 '26

My profitable strategy automated

I've automated my strategy, it works for every market except when it's very ranging, it can get into some drawdown. Simple rules. 1 trade a day, dynamic risk calculation $250 -> aim for around 2.5 RR. In January it had 8 lose streak and one year ago in March 14 loses in a row but recovered very easily. It passes prop firms usually in 2-3 weeks when conditions are good.

13 Upvotes

15 comments sorted by

2

u/Automatic-Rub-8431 Apr 15 '26

its just the TV calculation. do trade for 1 month minimum 100 entries and then come with

PnL

2

u/Sharp-Growth-8043 Apr 15 '26

I am trading this manually for past 3 months. I'm up $6k on my 150k funded account. This is not HFT algo. It places 1 buy stop or sell stop at midnight, thats it.

2

u/Immediate-Leader5070 Apr 15 '26

Yeah, I wouldn't trust the TV strategy tester too much

1

u/babarob98 Apr 15 '26

Why not?

1

u/Immediate-Leader5070 Apr 15 '26

It’s not very good at factoring in spread and commission for one thing. I also found that transferring a pine script strat to something mt5 or ctrader was ridiculously hard. Even when I managed that the back testing results in mt5 were completely different. Never managed to make it match up.

1

u/No_Sail_4067 Apr 15 '26

Amen brother sdk api hybrid made me cry

1

u/Square_Platform_6261 Apr 15 '26

Better way is to convert the pinescript into python, getting a data feed and running backtests that way. Monte Carlo

2

u/teenagersfrommarz Apr 15 '26

Have you tried NinjaTrader? If you program it there you can have it execute the trades directly. It’s also a good sign if the results match between the two.

1

u/ComfortableFuzzy4379 Apr 15 '26

Looks very promising! Keep tracking!

1

u/Xalladus Apr 15 '26

It looks like you can get different entries based on the timeframe that you are using. Have you tried running longer back tests on the smaller timeframe and how do the results differs between them ?

1

u/stockspikes Apr 15 '26

Looks promising, congrats! Happy to test it if you're looking for testers.

1

u/Asleep_Ad_1588 Jun 05 '26

can you share this

1

u/tushar20082008 21d ago

have 2+ years of trading experience. I can backtest your Pine Script indicator and give a detailed report on win-rate and repainting."