Trendy Monster Moving Day

Maximilian
Trader
Posts: 149
Joined: Sat Sep 06, 2014 2:43 pm

Trendy Monster Moving Day

Post by Maximilian »

:yahoo: :yahoo: :yahoo: :yahoo: :yahoo:

Hey Steve, I got it working.
I had to delete the codeline 35 "if (SendLimitOrder)" to get the pendings deleted ( I used a bucketshop with cryptos for testing). But I had to went back to the original code in this snippet

Code: Select all

 if (buyStopOpen)
      if (buyLimitOpen)
         return;
   
   if (sellStopOpen)
      if (sellLimitOpen)
         return;
   
because your solution wouldn´t work for me. Anyhow thank you so much for getting me back on track. :clap:
I hate having a problem. I can´t rest until it´s solved. My wife will be also grateful, I think.
Cheers,
Maximilian
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Trendy Monster Moving Day

Post by SteveHopwood »

Maximilian » Sun May 16, 2021 7:18 pm wrote::yahoo: :yahoo: :yahoo: :yahoo: :yahoo:

Hey Steve, I got it working.
I had to delete the codeline 35 "if (SendLimitOrder)" to get the pendings deleted ( I used a bucketshop with cryptos for testing). But I had to went back to the original code in this snippet

Code: Select all

 if (buyStopOpen)
      if (buyLimitOpen)
         return;
   
   if (sellStopOpen)
      if (sellLimitOpen)
         return;
   
because your solution wouldn´t work for me. Anyhow thank you so much for getting me back on track. :clap:
I hate having a problem. I can´t rest until it´s solved. My wife will be also grateful, I think.
Cheers,
Maximilian
Good for you. :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap:

:xm: :rocket:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Maximilian
Trader
Posts: 149
Joined: Sat Sep 06, 2014 2:43 pm

Trendy Monster Moving Day

Post by Maximilian »

Hi Steve,
some times I noticed that my triggered trades are not in sync with the strength confirming indies. I had a look a the sendinitial pair void and I have a question about the following snippet:

Code: Select all

void sendInitialPair(string symbol, int pairIndex)
{
   //Sends the initial pair of stop orders
   
   if (!marginCheck() )
      return;//Insufficient margin to allow a new trading cycle
      
   if (!isTradingAllowed(symbol, pairIndex) )
      return;   
   
   //Find the trigger
   getTradeTrigger(symbol, pairIndex);
//Alert(symbol, "  ", trigger);
   if (trigger == flat)
      return;//No trigger, so nothing to do
      
   //Trend confirmation. 
   if (!AllTriggersMustAgree)//Te getTradeTrigger() function takes
                             //care of this if AllTriggersMustAgree is enabled.
      if (!doStrengthConfirmation(symbol, pairIndex) )
         return;
it seems to me that the doStrengthconfirmation will only be processed, if the option AlltriggersMustAgree is true, otherwise it won´t. So to do the Strengthconfirmation it had to be executed once more, or am I on the wrong track?
Cheers Max
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Trendy Monster Moving Day

Post by SteveHopwood »

Maximilian » Tue May 18, 2021 11:04 am wrote:Hi Steve,
some times I noticed that my triggered trades are not in sync with the strength confirming indies. I had a look a the sendinitial pair void and I have a question about the following snippet:

Code: Select all

void sendInitialPair(string symbol, int pairIndex)
{
   //Sends the initial pair of stop orders
   
   if (!marginCheck() )
      return;//Insufficient margin to allow a new trading cycle
      
   if (!isTradingAllowed(symbol, pairIndex) )
      return;   
   
   //Find the trigger
   getTradeTrigger(symbol, pairIndex);
//Alert(symbol, "  ", trigger);
   if (trigger == flat)
      return;//No trigger, so nothing to do
      
   //Trend confirmation. 
   if (!AllTriggersMustAgree)//Te getTradeTrigger() function takes
                             //care of this if AllTriggersMustAgree is enabled.
      if (!doStrengthConfirmation(symbol, pairIndex) )
         return;
it seems to me that the doStrengthconfirmation will only be processed, if the option AlltriggersMustAgree is true, otherwise it won´t. So to do the Strengthconfirmation it had to be executed once more, or am I on the wrong track?
Cheers Max
Fantastic spot Max.

Max has spotted a logic flaw that guaranteed that Trendy would fail if AlltriggersMustAgree is disabled. I cannot imagine what I was thinking at the time. The fix is in V 1m in post 1.

DIY, go to the void sendInitialPair(string symbol, int pairIndex) function and scroll down to this, just a few lines down:

Code: Select all

   if (!AllTriggersMustAgree)//The getTradeTrigger() function takes
                             //care of this if AllTriggersMustAgree is enabled.
Delete the code.

:xm: :rocket:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
biobier
Trader
Posts: 72
Joined: Mon Mar 18, 2019 7:24 am

Trendy Monster Moving Day

Post by biobier »

biobier » Thu Nov 12, 2020 10:02 pm wrote:It confused me that Woodlands set made trades while this can't confirm the strenght. But it shows that the setup does not care about ADX while it is enabled. Because is has also set AllTriggersMustAgree=true

Code: Select all

   //Trend confirmation. 
   if (!AllTriggersMustAgree)//Te getTradeTrigger() function takes
                             //care of this if AllTriggersMustAgree is enabled.
      if (!doStrengthConfirmation(symbol, pairIndex) )
         return;
Or is the "empty" line 3 the reason for checking if (!doStrengthConfirmation(symbol, pairIndex) ) always?
I was also wondering about this back then... Good spot! :clap:
Must-reads for FOREX NOOBS as me:
Help for Newbies.
Information For Beginners
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Trendy Monster Moving Day

Post by SteveHopwood »

biobier » Tue May 18, 2021 2:13 pm wrote:
biobier » Thu Nov 12, 2020 10:02 pm wrote:It confused me that Woodlands set made trades while this can't confirm the strenght. But it shows that the setup does not care about ADX while it is enabled. Because is has also set AllTriggersMustAgree=true

Code: Select all

   //Trend confirmation. 
   if (!AllTriggersMustAgree)//Te getTradeTrigger() function takes
                             //care of this if AllTriggersMustAgree is enabled.
      if (!doStrengthConfirmation(symbol, pairIndex) )
         return;
Or is the "empty" line 3 the reason for checking if (!doStrengthConfirmation(symbol, pairIndex) ) always?
I was also wondering about this back then... Good spot! :clap:
It turns out that you were asking about this last November. I missed the significance of your post.

Just so you know, the 'empty line' was merely the continuation of the comment on the code above, so that my comment did not spread so wide that it could not be read on my machine without scrolling wide - I hate that.

Thanks for your help folks. SHF at its magnificent best. :clap: :clap: :clap: :clap: :clap: :clap: :clap:

:xm: :rocket:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. [email protected] is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Post Reply

Return to “Trendy Monster Moving Day”