Scanner construction question

hockeycoachdoug

Member
2019 Donor
VIP
I have an indicator that puts a red or blue dot above the bar when it closes when it triggers a buy or sell event. I want to make a scan for it which I thought should be pretty simple, but I'm having a time with it. I can't post the code because it's a purchased indicator. When I go to create a "custom" scan, the first two conditions I want are 1. close is greater then or equal to 5. and 2. VolumeAvg().'vol" is greater then or equal to 500000.
Now for the last condition I just want to scan for a blue "buy" or red "sell" dot. In the scanner, I choose "select a condition" and choose study and then find the study I am referencing. The offset is 0 and the only 3 plot options are Buy, Sell, trailstop. I have tried using- buy is equal to, I have tried close equals, close crosses above, etc. Can't figure out what the last line should be. I realize this might be difficult to help me since I am not able to actually show the actual code (it's TOP Swing Trader Pro). Any help or suggestion or what additional info I could provide to help accomplish this. Thanks in advance.
 

hockeycoachdoug

Member
2019 Donor
VIP
I have tried "is true" already, but what do you mean adjusting offset? I want it to signal on the current bar. I can also add the "within "x" days" feature at the end. Do I need to do something with .Nan (not a number) function or something
 

rad14733

Well-known member
VIP
Have you reached out to the author of this purchased indicator...??? It's going to be hit and miss for us to debug code we can't see... If you're on Discord you can reach out to me there... If I debug licensed code for members I delete it upon completion to keep everyone honest... I've been a victim of pirating so I am strict when it comes to copyright...
 

Similar threads

Top