StackManV2

Vlokkies
Trader
Posts: 41
Joined: Fri Oct 17, 2014 12:55 pm

StackManV2

Post by Vlokkies »

Radar » Fri Jan 08, 2016 1:40 pm wrote:Thanks, Vlokkies :)
One day after posting SM, and I'm already losing the will to live :(

Have fun!

Radar =8^)
Any time bud. :smile:
User avatar
Tebis
Trader
Posts: 111
Joined: Wed Nov 16, 2011 9:50 am
Location: Switzerland

StackManV2

Post by Tebis »

Radar » Today, 13:40 wrote:Thanks, Vlokkies :)
One day after posting SM, and I'm already losing the will to live :(

Have fun!

Radar =8^)
Hi Radar,
good to see u back.
Your first version worked allready, but I had not much time for trading !
I ll try this improved Version.
Thanks and nice weekend guys.
Cheers :)
Tebis
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

StackManV2

Post by Radar »

Updated EA & Scripts...

Added user feedback with adjustable fonts and corner selection.
Added checks to ensure trades had a stoploss...
Buys with no stoploss prevented scale-ins,
Sells with no stoploss caused scale-ins at maximum lot-size.
Forced a fixed distance between trades of JumpingStopTargetPips + BreakEvenTargetProfit.
Added an extra setting, "UseQuickProgStart" which allows scaling-in before JumpingStop has been moved beyond BreakEvenTargetProfit. First scale-in trade gets a soft stoploss (only monitored on your terminal, not on the server) of JumpingStopTargetPips * 0.4, and a hard stoploss of JumpingStopTargetPips. Second scale-in trade gets a soft stoploss of JumpingStopTargetPips * 0.8, and a hard stoploss of JumpingStopTargetPips. Subsequent scale-in trades get a normal stoploss of JumpingStopTargetPips.

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

StackManV2

Post by Radar »

G'day, folks.

So, I was playing with SM in the slacktester, and had 2 buys open, (using the QuickProg option), and everything was looking good until the 3rd buy was entered, at which point the display for "BuyLockedProfit" disappeared...

I spent hours glaring at the code, waiting for the problem to jump up at me, but it refused to come out of hiding :arrrg:

So, I went back to the slacktester, and played over the same time period, and it happened again (as it would)... This time, I looked in at the results tab, and found the cause...

The locked-in profit of the 2 winning trades was $1.10, and the stoploss of the 3rd trade was $1.10 in the red, which gave me a total locked profit of $0.00! Since I'd coded the user feedback only to display the combined locked profit, & locked loss, it obediently removed that part. :roll:

Time to edit some code... Go to the bottom of void DisplayUserFeedback() and change this...

Code: Select all

   if (CloseEnough(BuyLockedProfit, 0))
   {
      if (ObjectFind(ean + "BuyLocked1") >=0) ObjectDelete(ean + "BuyLocked1");   
      if (ObjectFind(ean + "BuyLocked2") >=0) ObjectDelete(ean + "BuyLocked2");
   } // End if (CloseEnough(BuyLockedProfit, 0))
   else if (!(CloseEnough(BuyLockedProfit, 0)))
   {
      
      DrawStuff("BuyLocked1", "Buy Locked Profit: ", StatsFontSize, StatsFont, movex13, movey7, Lime);
      ObjectSet(ean + "BuyLocked1", OBJPROP_CORNER, DisplayCorner);    

      if (BuyLockedProfit > 0) Col = Lime;
      else if (BuyLockedProfit < 0) Col = Red;
      
      DrawStuff("BuyLocked2", "$" + DoubleToString(BuyLockedProfit, 2), StatsFontSize, StatsFont, movex14, movey7, Col);
      ObjectSet(ean + "BuyLocked2", OBJPROP_CORNER, DisplayCorner);
   } // End else if (!(CloseEnough(BuyLockedProfit, 0)))
To this...

Code: Select all

      DrawStuff("BuyLocked1", "Buy Locked Profit: ", StatsFontSize, StatsFont, movex13, movey7, Lime);
      ObjectSet(ean + "BuyLocked1", OBJPROP_CORNER, DisplayCorner);    

      if (BuyLockedProfit > 0) Col = Lime;
      else if (BuyLockedProfit < 0) Col = Red;
      
      DrawStuff("BuyLocked2", "$" + DoubleToString(BuyLockedProfit, 2), StatsFontSize, StatsFont, movex14, movey7, Col);
      ObjectSet(ean + "BuyLocked2", OBJPROP_CORNER, DisplayCorner);
Edit the SellLocked code below that to suit.

Another piece of editing... Go to void LookForScaleInOpportunities(int& Managed[], string OpType), and delete the following...

Code: Select all

   if(CloseEnough(LockedInProfit(Managed, OpType), 0))
   {
      if (OpType == buy) cbsil = -1;
      if (OpType == sell) cssil = -1;
      return;
   } // End if(CloseEnough(LockedInProfit(Managed, OpType), 0))
I'm working on shrinking some of the functions at the moment, so will upload an updated version in a few days.

Have fun!

Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
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.

StackManV2

Post by SteveHopwood »

Radar » Tue Feb 16, 2016 4:45 am wrote:The locked-in profit of the 2 winning trades was $1.10, and the stoploss of the 3rd trade was $1.10 in the red, which gave me a total locked profit of $0.00! Since I'd coded the user feedback only to display the combined locked profit, & locked loss, it obediently removed that part. :roll:
I feel your pain Radar, I feel your pain. :arrrg: :arrrg: :arrrg:

:xm:
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.
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

StackManV2

Post by Radar »

Update...

Added Stop & Limit orders... Can use either Horizontal lines, or Trend lines...
Just park it in the right spot and name it one of either BuyStop, BuyLimit, SellStop, or SellLimit...
If, like me, you keep forgetting what goes where with stop and limit orders, see here...
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

StackManV2

Post by Radar »

Update...

Fixed Limit orders.
Added One Cancels Other (BuyStop <Cancels>SellStop, BuyLimit<Cancels>SellLimit).
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

StackManV2

Post by Radar »

Hey gang,

Here's a little game we can play...

Draw a trend channel...
Name the top line BuyStop...
Name the bottom line SellStop...
Calculate 10% of the gap between the lines...
Place a SellLimit that distance below the BuyStop...
Place a BuyLimit that distance above the SellStop...
BreakEven at 50% of the gap...
BreakEvenProfit at 5% or 10% of the gap...
TakeProfit at the opposite Limit order (80% of the gap).
Turn One_Cancels_Other off...

Now, we can play both inside and outside the channel (or breakout box).

Profit is pretty limited with the current settings, though... I can add Channel/BOB specific settings if there's enough interest :)

Have fun!
Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
Cubic
Trader
Posts: 22
Joined: Wed Nov 16, 2011 8:21 am

StackManV2

Post by Cubic »

Radar » Fri Mar 04, 2016 10:20 pm wrote:I can add Channel/BOB specific settings if there's enough interest :)
As a quiet admirer of your efforts, I was interested even before I realized that you miiiiight have seen something with this setup + those settings..... :good:
Radar
Trader
Posts: 437
Joined: Fri Mar 23, 2012 5:39 pm
Location: Round the bend ;)

StackManV2

Post by Radar »

Hey Cubic,
Cubic » Sat Mar 05, 2016 8:00 pm wrote:
As a quiet admirer of your efforts, I was interested even before I realized that you miiiiight have seen something with this setup + those settings..... :good:
To be honest, I haven't looked ;) I just pulled random numbers out of a hat...
The first time I saw a breakout box, I spent more time playing inside it than outside ;)

What I'll most likely end up doing is using Squalou's StairStep BreakOut indicator as a guide for placing my lines when price is going sideways, and use either a pitchfork or equidistant channel as a guide for the trends.

Have fun!
Radar =8^)
Check out my new, (well, old now), manual trade & automatic scale-in manager,
StackManV2
Post Reply

Return to “Utilities”