Strategy modification in pine script

Ipo Wazi Ilichapishwa masaa 14 yaliyopita Kulipwa wakati wa kujifungua Inaisha kwa 6 siku
Ipo Wazi Kulipwa wakati wa kujifungua Inaisha kwa 6 siku

I have a strategy which i use for auto trading, it works continuously , if a long entry comes , it will trade in long until any short arises, if short entry comes , it exits long and enters short immediately. I want to enable pyrammiding function on my algo , but i want different alerts for pyrammiding , for examplae, if i set pyrammidng to 3, then consider that stock is going up , so it buys 1 quantity , then again 1 , then again 1 , so now it has 3 lots , but when short trade comes immedietly , it exit 3 lots and enters 1 lot of short position , so i need you to do such modifications in alerts and {quantity} parameters.

Pine Script Trading

Kitambulisho cha Mradi: #38971308

Kuhusu mradi

9 mapendekezo Imefunguliwa kupata zabuni Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

9 wafanyakazi huru wanazabuni wastani wa ₹6111 kwa kazi hii

deepgovindbusin

Hi, I can do it and if you find any problem in my code then you can message me any time.

₹7000 INR kwa siku 1
(Maoni 60)
5.5
Iwori

Hi. I am a professional coder in the development of Bots, Indicators and Scripts for TradingView and MT4/MT5, and I already did similar projects to this job successfully. Please let us talk about the details of the job Zaidi

₹3000 INR kwa siku 1
(Maoni 48)
5.4
ducthodg

hi. i am pinescirpt expert. i have read the requirement carefully and can complete it early today for 3000 INR for you. please open a chat with me. i am ready to do this right now for you. thank you

₹3000 INR kwa siku 1
(Maoni 16)
4.4
loxtic

Hello, how are you doing? I have considerable experience with algorithmic trading and have successfully implemented strategies incorporating layering and alert customizations. I have deployed multiple projects using pl Zaidi

₹12500 INR kwa siku 5
(Maoni 1)
2.2
maksymh825

Hi, Your strategy is easy to do with just one state variable for long or short position. If var is 1, then it means long and if short signal triggered, close long and open short. And pyramid function is also possible w Zaidi

₹7000 INR kwa siku 3
(Maoni 0)
0.0
ranarohit248

Adaptable and client-focused freelance stock trader with a passion for navigating the complexities of the financial markets. Experienced in tailoring trading strategies to meet specific client objectives and risk toler Zaidi

₹7000 INR kwa siku 7
(Maoni 0)
0.0
AnthonGF

Hi, We can setup the pine script code in a way where the algorithm enters the market gradually after it closes the opposite direction trades instead of entering with big lots.

₹7000 INR kwa siku 7
(Maoni 0)
0.0
clashr5

I am highly experienced in creating and customizing Pine Script strategies for TradingView. I can modify your strategy to implement the pyramiding functionality with tailored alerts for each level. The adjustments will Zaidi

₹1500 INR kwa siku 7
(Maoni 0)
0.0