Monthly trading

User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Monthly trading

Post by SteveHopwood »

barry » Mon Oct 24, 2022 9:41 am wrote:Steve,
Great results here, congratulations. I'm getting ready to start a Monthly Trading demo on Nov 1st. I added xauusd to the Pairs to Trade in the Send trades in monthly direction script. It placed forex trades as intended but it placed 5 xauusd trades, instead of one. I closed all trades and applied the script again - same result. If this happens on Nov 1, I can close the 4 unwanted xauusd trades, so no great problem. But xauusd is doing very well in your 2276025 results, so you probably want to change your setfile as I did, to ensure that you keep getting trades in that pair, so I thought I'd pass on this feedback, in case you see the same issue, cheers.
XAUUSD has been ridiculously successful - despite not actually being in my PairsToTrade list. I have absolutely no idea why the pair is being traded by the script.

I will have another look at the script code to see if your multiple xauusd trades are resulting from our old friend the delayed return receipt. Yet xauusd is not in the list. So why is it trading at all?

Do us all a favour please, fellow coders. Remember that I do not have a logical brain and that starting iterations from 0 instead of 1 confuses the Hell out of me. Please have a look at void extractPairs() in the script and see if you can spot anything wrong in the coding.

: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. pianodoodler@hotmail.com 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.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Monthly trading

Post by SteveHopwood »

I ran a TradeReport in light of barry's comment about xauusd
XAUUSDH4.png
xauusd is the runaway success - yet I have no idea how the orders are being placed. I will add the pair to my list and see what happens on Tuesday.

:xm: :rocket:
You do not have the required permissions to view the files attached to this post.
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. pianodoodler@hotmail.com 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.
User avatar
tomele
Administrator
Posts: 1208
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Monthly trading

Post by tomele »

Hi Steve.

Your montly trading is the most promising Forex strategy I have seen for a long time.

:clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap:

I was tired of Forex trading for quite some time, but am now back on fire. I will try to contribute a bit. Coming very soon ... Paycheck EA, available for Empty4 and MT5.
Paycheck-OnDemand 2022-10-28 19-31-38.jpg
In the meantime, if there are any EXPERIENCED members wanting to help in beta testing - drop me a PM.

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
Barcode

Monthly trading

Post by Barcode »

Steve, Might be worth adding XAGUSD to the list just in case it acts the same as XAUUSD :)
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Monthly trading

Post by SteveHopwood »

Barcode » Sat Oct 29, 2022 1:31 am wrote:Steve, Might be worth adding XAGUSD to the list just in case it acts the same as XAUUSD :)
Good idea. I will give it a go.

: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. pianodoodler@hotmail.com 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.
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Monthly trading

Post by trader689 »

Paycheck EA - very intriguing tomele! is this based on the monthly trading principles?

trader
tomele » Fri Oct 28, 2022 4:38 pm wrote:Hi Steve.

Your montly trading is the most promising Forex strategy I have seen for a long time.

:clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap:

I was tired of Forex trading for quite some time, but am now back on fire. I will try to contribute a bit. Coming very soon ... Paycheck EA, available for Empty4 and MT5.



In the meantime, if there are any EXPERIENCED members wanting to help in beta testing - drop me a PM.

Cheers
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Monthly trading

Post by SteveHopwood »

Folks, redownload the order sending script if you have not yet sent your orders yet. Start a fresh demo if you have sent them for the first time and so have no order history to lose.

Thomas noticed that some of the orders were sent in the wrong direction i.e. buying when the previous candle fell. He explained that:
  • Data is only called for from the server when needed - in this case the open and close prices of the previous candle.
    Said data can take a while to arrive in our history but Empty4 ignores this fact and works with the next best thing - in this case often the open/close prices of two candles ago.
I checked my trades from this morning and yes, at least a third of them were wrong. We live and learn.

Thomas also provided the code to correct this so I edited the script and have just used it on another demo. All correct.

For DIYers, replace the existing void getDirection(string symbol, int tf, int pairIndex) function with this:

Code: Select all

void getDirection(string symbol, int tf, int pairIndex)
{

   //Ascertain the direction of movement of the previous candle
   
   //double copen = iOpen(symbol, tf, 1);
   //double cclose = iClose(symbol, tf, 1);
   
   //////////////////////////////////////////////////
   //Thomas provided this section of code. Here is why, from his
   //pm to me:
   /*
   As I know, history will get loaded as soon as you access data, but that takes a while and Empty4 
   doesn't wait for the data to arrive. Instead it throws a 4066 or 4073 error which the programmer is 
   entitled to handle. In MT5 this might work better.
   Here is what I have added to my EA. You can easily adapt it to your variables:
   */
   ResetLastError();
   double copen=iOpen(symbol,PERIOD_MN1,1);
   while(GetLastError()!=0)
   {
      Sleep(10);
      ResetLastError();
      copen=iOpen(symbol,PERIOD_MN1,1);
   }
     
   ResetLastError();
   double cclose=iClose(symbol,PERIOD_MN1,1);
   while(GetLastError()!=0)
   {
      Sleep(10);
      ResetLastError();
      cclose=iClose(symbol,PERIOD_MN1,1);
   }
   //////////////////////////////////////////////////
    
   
   direction = none;
   if (cclose > copen)
   {
      direction = long;
      return;
   }//if (cclose > copen)
   
   if (cclose < copen)
   {
      direction = short;
      return;
   }//if (cclose > copen)
   

}//End void getDirection(string symbol, int tf, int pairIndex)
Let's see if 'correct' code turbocharges this or buggers it up. :lol:

Thanks again Thomas. :clap: :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. pianodoodler@hotmail.com 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.
User avatar
tomele
Administrator
Posts: 1208
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Monthly trading

Post by tomele »

Hi Steve.

Glad it worked. Can we have investor access to the new demo?

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
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Monthly trading

Post by SteveHopwood »

tomele » Wed Nov 02, 2022 10:58 am wrote:Hi Steve.

Glad it worked. Can we have investor access to the new demo?

Cheers
I tested the script on my software development machine, so there is no new demo.

: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. pianodoodler@hotmail.com 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.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Monthly trading

Post by SteveHopwood »

For the edumification of all of us, here is what Rene sent to me earlier today:
renexxxx wrote:Subject: Monthly trading
SteveHopwood wrote:
Do us all a favour please, fellow coders. Remember that I do not have a logical brain and that starting iterations from 0 instead of 1 confuses the Hell out of me. Please have a look at void extractPairs() in the script and see if you can spot anything wrong in the coding.
Hi Steve,

You have probably figured it out yourself already, but if not, here goes:

You have to remove the last line of the extractPairs() function, i.e. comment out the ArrayResize like so:

Code: Select all

   // Resize the arrays appropriately
   //ArrayResize(tradePair, noOfPairs);
The tradePair[] array gets already resized for every symbol in the tempTradePair[] array that has a bid-value. You don't want to add additional empty strings in the tradePair[] array for those pairs that are in the PairsToTrade string, but are not in the MarketWatch panel (and therefore have no bid-value). Because, if you do, and you run this script on a XAUUSD-chart, these empty strings are translated to the current symbol (i.e. XAUUSD) in the other functions (MarketInfo, OrderSend etc).

Hope this makes sense.

Rene.
Thanks again, Rene. :xm: :rocket:

Update in post 1. DIYers, search for the "// Resize the arrays appropriately" comment and commend out/delete the ArrayResize(tradePair, noOfPairs); command.

-------

Thomas, a while back you sent me a command that would force the Market Watch window to include any of our pairs not already showing. I know I used it but cannot remember where. Could you upload it here, please, as I am sure others would like it.

: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. pianodoodler@hotmail.com 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 “Manual trading systems”