PennyFlipper101
New member
how do I add an indicator that simply plots the words buy and sell on the main chart when certain conditions are met
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
This code was given to me, it is supposed to indicate when money goes into a stock and when money is flowing out.@PSandy Where did the code come from and is it related to this topic...??? Is this code you wrote, or did you find it elsewhere...??? All you've said is it doesn't work without any background as to what it should be doing... The more information we have the better we can be of assistance...
This indicator is supposed to show money going in and money going out.@PSandy Trying to get your logic in this, are you looking for the start of a downtrend?
It seems this event will only occur occasionally, I am not sure how you get a trend line from it. I think you need to plot an arrow where this condition currentsum is true. And maybe replace the " + " in your equation with an " and ".
I need input on this code it will not work, what is wrong?
declare lower;
Lower
.I think the issue here is that this is meant to be a lower study but it doesn't declare that in the code. If you put it in the upper area of the chart the values aren't scaled to be relevant to current prices and it only appears near price coincidentally on some symbols.
Add a line to the code that says...
...and in your studies, drag it to one of the study slots labeledRuby:declare lower;
Lower
.
Where would you recommend to put this line code?I think the issue here is that this is meant to be a lower study but it doesn't declare that in the code. If you put it in the upper area of the chart the values aren't scaled to be relevant to current prices and it only appears near price coincidentally on some symbols.
Add a line to the code that says...
...and in your studies, drag it to one of the study slots labeledRuby:declare lower;
Lower
.
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.