I'm experiencing a logic error within my Pine Script specifically related to my indicator. The variable is not retaining its value correctly, which is causing my indicators to function improperly.
I need an expert in Pine Script who can help me troubleshoot and fix this issue. Ideally, you should have extensive experience with creating and debugging Pine Script indicators. Your understanding of the inner workings of variable retention within Pine Script will be crucial for successfully resolving this issue.
So during the 30 second bar this happens. It should be LONG MODE. I only set the mode change the mode in 2 spots and set this at the top
var Mode currentMode = [login to view URL]
[2025-01-08T17:42:00.000+11:00]: Start - Mode: SHORT MODE, Close: 95,826.3
[2025-01-08T17:42:00.000+11:00]: SHORT MODE - Checking for high break...
[2025-01-08T17:42:00.000+11:00]: Transitioned to LONG MODE at price: 95,826.3
[2025-01-08T17:42:00.000+11:00]: End - Mode: LONG MODE, Close: 95,826.3
[2025-01-08T17:42:00.000+11:00]: Start - Mode: SHORT MODE, Close: 95,784
Hi, In pinescript, the general variables are array with bars and new values are updated with new bar.
So with common variable can't keep data with bar update.
So there is varip variable declaration which keeps data with whole period.
I have developed many strategies and indicators with pinescript in tradingview and I can handle errors in short time.
I hope to discuss more about the bugs, Thank you.
$50 AUD på 2 dage
5,0
(1 bedømmelse)
0,2
0,2
6 freelancere byder i gennemsnit $151 AUD på dette job
I'm 14 years of experienced TradingView (pine script) developer and i can assist you to solve the issue accordingly. To do the project, we need to discuss in more detail. Please send me a message to move proceed.
Hello there. Pinescript expert developer HERE!
I have been developing many projects for 6 years.
So I feel this job is great match to my skills and experience, and really confident to fix your project as your requirements exactly.
I'll give you an excellent results.
Thanks.
I am ready to dive into debugging the logic error in your Pine Script indicator. Your description of the issue with the variable not retaining its value is clear, and I am confident in my ability to troubleshoot and fix this problem effectively.
To better understand the scope of the issue, could you please provide more details about how the variable is being updated throughout the script? Additionally, it would be helpful to know if there are any specific conditions or triggers that seem to cause the variable to lose its correct value. Understanding these aspects will assist me in pinpointing the root cause of the problem and implementing a precise solution.
When would be the best time for us to discuss this project further? I am eager to collaborate with you and get your Pine Script indicator back on track.
I can help you troubleshoot the variable retention issue in your Pine Script indicator. I will carefully analyze your code, identify the root cause of the problem, and implement necessary corrections to ensure the currentMode variable retains its value across bars. I will provide a revised script and offer guidance on debugging and optimizing your Pine Script code for optimal performance.