Peaky on Steroids

The place for Peaky and Peaky-related stuff.
Post Reply
User avatar
donix
Trader
Posts: 12
Joined: Tue Sep 06, 2016 3:21 pm
Location: Italy

Peaky on Steroids

Post by donix »

I added a ATR condition: Close all symbols when the target was reached and ATR is low (<= 0.003)

Code: Select all

{
	for(int k = 0; k < SymbolsTotal(true); k++) {
		string symbol_marketwatch = SymbolName(k, true);
		double sum = 0;
		for(int j = OrdersTotal()-1; j >= 0; j--) {
			if(OrderSelect(j, SELECT_BY_POS) && symbol_marketwatch == OrderSymbol() && OrderType() < 2)
				sum += OrderProfit();
		}
		int dATR = GetAtr(symbol_marketwatch, TimeFrames[1], 14, 1);
		
		if(sum >=  BasketCashAllCurrencyPairsTarget && (dATR <= 0.0030)) {
			Print("closing all: ", symbol_marketwatch, " in profit of >= ", sum);
			for(int i = OrdersTotal()-1; i >= 0; i--) {
				if(OrderSelect(i, SELECT_BY_POS) && symbol_marketwatch == OrderSymbol() && OrderType() < 2)
					if(!OrderClose(OrderTicket(), OrderLots(), OrderType() == OP_BUY ? MarketInfo(symbol_marketwatch, MODE_BID) : MarketInfo(symbol_marketwatch, MODE_ASK), 3))
						Print("close failed: ", GetLastError());
			}
		}
	}
}
Peaky on Steroids 1p donix_LAB 0.1.mq4
You do not have the required permissions to view the files attached to this post.
Last edited by donix on Fri Oct 04, 2019 8:07 pm, edited 2 times in total.
User avatar
donix
Trader
Posts: 12
Joined: Tue Sep 06, 2016 3:21 pm
Location: Italy

Peaky on Steroids

Post by donix »

Updated post and fixed code: Peaky on Steroids 1p donix_LAB 0.1.mq4

http://www.stevehopwoodforex.com/phpBB3 ... 11#p168811
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Peaky on Steroids

Post by trader689 »

Thanks for the share of your custom version donix, as well as sharing your settings on p90 of the thread. Has gotten off to a great start so far this week. :good:

Let's see how it performs going forward

Trader
echoman01
Trader
Posts: 45
Joined: Thu Feb 20, 2014 2:11 pm

Peaky on Steroids

Post by echoman01 »

Thanks donix ! :party:
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Peaky on Steroids

Post by Gertje »

I just HAD to share this, insane behaviour of price.
:!!:
Thanks to Renee's TradeReplicator I was able to catch a few pips within seconds.
GBPAUD.png
1st trade opened 12.09.56 and closed 12.09.58; 20 pips in 2 seconds
2nd trade opened 12.10.10 and closed 12.10.18; 24 pips in 8 seconds
3th trade opened 12.10.28 and closed 12.19.37; 25 pips in a slow 9 minutes... :smile:
You do not have the required permissions to view the files attached to this post.
User avatar
Gertje
Trader
Posts: 1936
Joined: Mon Dec 12, 2011 1:17 pm
Location: Middle of the Netherlands

Peaky on Steroids

Post by Gertje »

:!!: :!!: :!!:
I just realised I passed the 100.000 pip mark on my live account using PoS..... :party:
It took me a lot longer than Tomele with his settings on SPB, but I enjoyed the journey.
XAUUSDDaily.png
:!!: :!!: :!!:
You do not have the required permissions to view the files attached to this post.
andwen
Trader
Posts: 62
Joined: Tue Jun 03, 2014 4:07 am
Location: Melbourne, Aust

Peaky on Steroids

Post by andwen »

EXTRAORDINARY effort Gertje

Well done :hi: :cheer:

I am back into POS for the last month or so we will see
Yannis
Trader
Posts: 56
Joined: Tue May 22, 2012 7:42 am

Peaky on Steroids

Post by Yannis »

Fireworks indeed Gertje, stunning result, well done and well deserved.
:party: :!!:
bodavid
Trader
Posts: 64
Joined: Sun Jan 10, 2016 1:58 pm

Peaky on Steroids

Post by bodavid »

GREAT WORK :clap: :clap: :clap:
:!!: :!!: :!!: :!!: :!!:
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.

Peaky on Steroids

Post by SteveHopwood »

Oh wow. You cannot even begin to imagine how thrilled I am.

This is an epic success. It sends this message to the rest of us: stick with something you believe has potential and make it work for you.

Now for the party
:party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :party: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!: :!!:
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 “Peaky forum”