PureBytes Links
Trading Reference Links
|
Eugene,
Try this technique of modifying only the last Closing price using
Params:
//Quote Shift code is up here so it will be the top two parameters!
quoteShift = Param(" Quote Shift dollars",0,-100,100,1); //Users can
change this value to see if trades are near. DON'T FORGET TO SET IT
BACK!!
quoteShiftcents = Param(" Quote Shift cents",0,-0.99,0.99,0.01); //Fine
tuning of above dollar slider. DON'T FORGET TO SET IT BACK!!
quoteShift = quoteShift + quoteShiftcents;
C_Last = LastValue(C);
//Percent to shift for changing multiple prices
//BuyPrice and SellPrice should be adjusted too
percentShift = (quoteShift + C_Last) / C_Last;
//Remind user quotes have been shifted
WriteIf(quoteShift != 0,"\nQUOTES ARE SHIFTED BY $" +
NumToStr(quoteShift,1.2) +
"\nALL today's quotes shifted by " + NumToStr(percentShift,1.4) + "
%\n","");
//This actually changes the current closing price
C = IIf(BarIndex() == LastValue(BarIndex()), C * percentShift, C);
--
Terry
| -----Original Message-----
| From: amibroker@xxxxxxxxxxxxxxx
| [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Eugene
| Sent: Sunday, June 05, 2005 3:54 AM
| To: amibroker@xxxxxxxxxxxxxxx
| Subject: [amibroker] Using Param to estimate future values
|
|
| I wanted to estimate by using the param function when a
| particular indicator would change....
|
| Is this possible...
|
| thanks
------------------------ Yahoo! Groups Sponsor --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~->
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|