Jump to content

Recommended Posts

Posted
Enzofox i can help you in italian language , please ask me if you want ciao

 

@admis thank you again for your time for us,

 

can you only in the strategy (your PPTBoxSLsig.cs) turn off the message when the box is triggered??

thank you so much

 

here a partial statistic http://my.jetscreenshot.com/20438/20140412-octc-139kb

 

regards

 

ciao Enzo

 

If you mean to turn off the popup in the source code, goto line 60

 

private bool enablePopup = true;

 

and set the false to false.

  • Replies 412
  • Created
  • Last Reply

Top Posters In This Topic

Posted
@Enzo:

Your version (dll) of P__Box seems to be the same as previously shared in the source form. Someone has made only a few changes in the code before sharing... That's the reason a pennants was not visible.

 

I did the changes

Why you all to thank and download, but do not work and they share?

Posted
Yes, it is possible but would you be so kind and explain your intentions?

 

@admis

Use it to create "trigger" box for example if price is between -50 and -61 can initiate a buy and the opposite of course. Experiment with the range between box -50-61 and +50 and 61. I have done it manually of it is pain to back test ...

Posted (edited)

It's the same version as previously shared with one exception:

targets can be assigned from a strategy as parameters. New name of this indicator and form of calling:

PPTBoxSigLev(int target1, int target2, int target3, int target4, int target5)

Example of usage:

 

if (Position.MarketPosition == MarketPosition.Flat)

{

if (PPTBoxSigLev(162, 233,377, 512, 618).Box_Signal[0] == 1)

{

EnterLong(DefaultQuantity, "");

}

 

if (PPTBoxSigLev(162, 233,377, 512, 618).Box_Signal[0] == -1)

{

EnterShort(DefaultQuantity, "");

}

}

You have to adapt your current strategies to the new name and parameters or use a previous release: PPTBoxSLsig() if you're not interested in a new feature introduced.

 

 

P.S. This is my last release of this tweaked indicator. Now you can spend even 10k$ on a strategy development or ask yourself if it's worth ...

Edited by admis
Posted

@westvleteren:

Using a strategy wizard is convenient as scratching by your right hand behind your left ear. You lost one day for something what should takes 5 min. Let's better spend your time on teaching C#... I don't get what exactly you looking for now?

Posted (edited)

You've just discovered limitations of strategy builder. In C#, or what you call "spaghetti", it can be solved in one line.:

 

if (PPTBoxSLsig().Box_Signal[0] == 1)

{

BackColor = Color.LightGreen;

EnterLong(Contracts, "Long");

SetProfitTarget("Long", CalculationMode.Price, PPTBoxSLsig().LongTarget1[0]);

}

The problem depends on "SetProfitTarget" which is not available in a structure of "Do the following".

I'll try to translate it into "spaghetti" form and you'll see it can be "eaten". ;)

Edited by admis

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...