Scalping New York

Post Reply
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.

Scalping New York

Post by SteveHopwood »

I have edited post 1. To replace Multiple Scalpy with Scalpy:
  • Save your current inputs.
  • Remove Multiple Scalpy from your chart.
  • Delete the original version of Scalpy.
  • Shut down the platform.
  • Download the version attached to post 1.
  • Restart the platform.
  • Drag Scalpy onto a chart and load up your set file.
Re-download it anyway if you are not a DIYer because I realised the extra display detail needed another conditional. If you are a DIYer, do a search for:
SM("Trading hours: " + TradingHours + " (Local time)" + NL);

Underneath that is the block of code that sets up the elements to display. It needs to select the earliest order, so replace the block with this one:

Code: Select all

   if (openTrades > 0)
   {
      //Select oldest order
      if (betterOrderSelect(oldestTradeTicketNo, SELECT_BY_TICKET, MODE_TRADES) )
      {
         datetime breakEvenStarts = calculateBreakEvenStartTime();
         datetime autoCloseStarts = calculateAutoCloseTime();
         SM("Breakeven time " + TimeToStr(breakEvenStarts, TIME_MINUTES) 
         + ": Automatic close time " + TimeToStr(autoCloseStarts, TIME_MINUTES) + " (Both are broker time)" + NL);   
      }//if (betterOrderSelect(oldestTradeTicketNo, SELECT_BY_TICKET, MODE_TRADES) )
      
   }//if (openTrades > 0)
: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.

Scalping New York

Post by SteveHopwood »

biobier » Fri May 27, 2022 9:58 am wrote:I'm a bit late to the show but this looks great!
Just a question why not use UTC times (UTC is the new GMT) in the setting? Then we would not need to bother adjusting to the local/brokers time as UTC is everywhere the same. https://time.is/en/UTC
London open is 07 UTC and NY is 12 UTC. https://www.babypips.com/tools/forex-market-hours
Thanks. Just to make sure I understand, anyone, anywhere in the world, under the sea or out in space, could use 7 UTC and 12 UTC as their inputs?

: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.
biobier
Trader
Posts: 72
Joined: Mon Mar 18, 2019 7:24 am

Scalping New York

Post by biobier »

SteveHopwood » Fri May 27, 2022 2:46 pm wrote: Thanks. Just to make sure I understand, anyone, anywhere in the world, under the sea or out in space, could use 7 UTC and 12 UTC as their inputs?

:xm: :rocket:
Yes exactly (except out in space as time is bound to gravity, but that is another topic: "gravitational time dilation") :D
Must-reads for FOREX NOOBS as me:
Help for Newbies.
Information For Beginners
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.

Scalping New York

Post by SteveHopwood »

biobier » Fri May 27, 2022 2:41 pm wrote:
SteveHopwood » Fri May 27, 2022 2:46 pm wrote: Thanks. Just to make sure I understand, anyone, anywhere in the world, under the sea or out in space, could use 7 UTC and 12 UTC as their inputs?

:xm: :rocket:
Yes exactly (except out in space as time is bound to gravity, but that is another topic: "gravitational time dilation") :D
Fantastic. Thanks for a brilliant contribution. :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
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Scalping New York

Post by SteveHopwood »

biobier » Fri May 27, 2022 9:58 am wrote:I'm a bit late to the show but this looks great!
Just a question why not use UTC times (UTC is the new GMT) in the setting? Then we would not need to bother adjusting to the local/brokers time as UTC is everywhere the same. https://time.is/en/UTC
London open is 07 UTC and NY is 12 UTC. https://www.babypips.com/tools/forex-market-hours

I use this code:
Another quick question. Why 2 functions that appear to do the same thing?

: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.

Scalping New York

Post by SteveHopwood »

Live last week, New York only, 3 BE and 2 TP:
Live last week.png
-----------
I have added biobier's UTC code. The relevant input is TimeSourceToUse; this defaults to London and New York open i.e. 7 and 12 UTC. Download from post 1.

: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.
wallywonka
Trader
Posts: 188
Joined: Thu May 12, 2016 7:46 am

Scalping New York

Post by wallywonka »

Steve that’s a great result for London open! :clap: or

Did you run New York also? How did that go in comparison?

Cheers Wally
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.

Scalping New York

Post by SteveHopwood »

wallywonka » Sun May 29, 2022 3:24 am wrote:Steve that’s a great result for London open! :clap: or

Did you run New York also? How did that go in comparison?

Cheers Wally
I meant to write New York only. I am adding London next week.

: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.
biobier
Trader
Posts: 72
Joined: Mon Mar 18, 2019 7:24 am

Scalping New York

Post by biobier »

SteveHopwood » Fri May 27, 2022 3:58 pm wrote:
Another quick question. Why 2 functions that appear to do the same thing?

:xm: :rocket:
The parameter differ as sometimes you might want to get MqlDateTime type structure instead of datetime type. Just take the one you like to use :-)
Must-reads for FOREX NOOBS as me:
Help for Newbies.
Information For Beginners
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.

Scalping New York

Post by SteveHopwood »

biobier » Sun May 29, 2022 10:35 am wrote:
SteveHopwood » Fri May 27, 2022 3:58 pm wrote:
Another quick question. Why 2 functions that appear to do the same thing?

:xm: :rocket:
The parameter differ as sometimes you might want to get MqlDateTime type structure instead of datetime type. Just take the one you like to use :-)
Thanks. I figured that was the case - just wanted to make sure.

: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 “Automated trading systems”