TDesk User Indicators Playground

Post Reply
wallywonka
Trader
Posts: 176
Joined: Thu May 12, 2016 7:46 am

TDesk User Indicators Playground

Post by wallywonka »

WorldsEnd » Thu Jan 12, 2023 7:58 pm wrote:Guys, I‘m using SS_SupportResistance_v07 which is working fine with TDesk. I‘m just wondering how often the signal/chart refreshes. Is there a line in the code where I should have a look?
Hey mate, Had a bit of a look but I can't quite work it out. I notice the signals stick even once the price has moved out of a zone, not sure how to fix this maybe someone else can work it out.
User avatar
WorldsEnd
Trader
Posts: 95
Joined: Fri Aug 29, 2014 7:36 pm

TDesk User Indicators Playground

Post by WorldsEnd »

wallywonka » 03 Feb 2023, 02:28 wrote:
WorldsEnd » Thu Jan 12, 2023 7:58 pm wrote:Guys, I‘m using SS_SupportResistance_v07 which is working fine with TDesk. I‘m just wondering how often the signal/chart refreshes. Is there a line in the code where I should have a look?
Hey mate, Had a bit of a look but I can't quite work it out. I notice the signals stick even once the price has moved out of a zone, not sure how to fix this maybe someone else can work it out.
Hey buddy, that‘s exactly what I recognized. Furthermore one needs to open all charts which is ok but it would be way better if we could use UBD with this indi.
Anyway, my „workaround“ for the mentioned problem, I am closing and opening all charts with the help of TDesk 3 to 4 times a day. Worth noting, I am trading on the 4h timeframe. I have not find a better solution thus far.
User avatar
tomele
Administrator
Posts: 1166
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Re: TDesk User Indicators Playground

Post by tomele »

Hi guys.

Try the attached one. Still needs to have umpteen charts open, UBD version will probably be addressed later.

Cheers
You do not have the required permissions to view the files attached to this post.
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
User avatar
WorldsEnd
Trader
Posts: 95
Joined: Fri Aug 29, 2014 7:36 pm

Re: TDesk User Indicators Playground

Post by WorldsEnd »

Thanks a lot for the update Thomas. The new version is up and running. It's too early to tell if it's updating signals when price has left a zone but I'll report back as soon as conditions permit.
Do you see a possibility to select certain zones which send a signal to TDesk? Maybe by commenting out the appropriate code in the indicator? I'd like to see if I can find better trade entries by deselecting a turncoat or a weak zone, i.e.
User avatar
tomele
Administrator
Posts: 1166
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Re: TDesk User Indicators Playground

Post by tomele »

You can do it this way:

Code: Select all

bool CheckEntryAlerts()
{
// check for entries
   for (int i=0; i<zone_count; i++)
   {
      // skip the irrelevant zones
      if (zone_strength[i] == ZONE_TURNCOAT) continue;
      if (zone_strength[i] == ZONE_POSSIBLE) continue;
      if (zone_strength[i] == ZONE_UNTESTED) continue;
      if (zone_strength[i] == ZONE_WEAK) continue;
      
      ...
Cheers
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
User avatar
tomele
Administrator
Posts: 1166
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Re: TDesk User Indicators Playground

Post by tomele »

Okay, here is the UBD stuff.

You can control the unwanted zone types by (un)commenting around line 250:

Code: Select all

         // skip the irrelevant zones
         if (zone_strength[i] == ZONE_TURNCOAT) continue;
         if (zone_strength[i] == ZONE_POSSIBLE) continue;
         if (zone_strength[i] == ZONE_UNTESTED) continue;
         if (zone_strength[i] == ZONE_WEAK) continue;
These lines are statements to ignore certain zone types.
If you comment out a line, the zones of this type will generate signals.

Cheers
You do not have the required permissions to view the files attached to this post.
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
wallywonka
Trader
Posts: 176
Joined: Thu May 12, 2016 7:46 am

Re: TDesk User Indicators Playground

Post by wallywonka »

Hey Thomas, seems commenting out those lines that it still sends a signal regardless, not sure if you have anymore ideas...
Post Reply

Return to “TDesk: A Thomas Special. The greatest trading tool ever.”