stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Trendy Monster Moving Day
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5904
Page 6 of 6
Author:  Maximilian [ Sun May 16, 2021 7:18 pm ]
Post subject:  Trendy Monster Moving Day

: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
Author:  SteveHopwood [ Sun May 16, 2021 8:10 pm ]
Post subject:  Trendy Monster Moving Day

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:
Author:  Maximilian [ Tue May 18, 2021 11:04 am ]
Post subject:  Trendy Monster Moving Day

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
Author:  SteveHopwood [ Tue May 18, 2021 1:57 pm ]
Post subject:  Trendy Monster Moving Day

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:
Author:  biobier [ Tue May 18, 2021 2:13 pm ]
Post subject:  Trendy Monster Moving Day

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:
Author:  SteveHopwood [ Tue May 18, 2021 11:12 pm ]
Post subject:  Trendy Monster Moving Day

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:
All times are UTC Page 6 of 6