Jump to content

The box


yamantaka

Recommended Posts

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.

Link to comment
Share on other sites

  • Replies 412
  • Created
  • Last Reply

Top Posters In This Topic

Updated version:

- Pennants visible

- Levels can be set in the parameter box /no impact on a strategy parameters/

- Few other minor improvements

All of the changes, made in the source file are marked by: //@$

 

http://indo-investasi.com/showthread.php/24211-The-box?p=324613&viewfull=1#post324613

 

Cheers,

Edited by admis
Link to comment
Share on other sites

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

 

It's the version you asked for:

http://www.sendspace.com/file/1gtvsc

pass ... as usual

;)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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