logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Artici  
#1 Posted : Tuesday, January 14, 2014 2:00:15 AM(UTC)
Artici

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 12/1/2013(UTC)
Posts: 12

Hi,

Pls advise how should I code if I want to exit exactly 3 bars after entry ? And where I can find reference information for such functions as Bars Since Entry(?)... Thanks.

haddison  
#2 Posted : Tuesday, January 14, 2014 12:07:50 PM(UTC)
haddison

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/6/2010(UTC)
Posts: 113
Location: London

Simulation.CurrentPositionAge

(it's a bit slow though)
MS Support  
#3 Posted : Tuesday, January 14, 2014 2:55:44 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
If looking for a System Tester-based formula, you can also try using the Inactivity Minimum Change in the Stops tab of a System Test. Check the Longs or Shorts box as needed, set the number of periods to 3, and set to an extremely large point value (i.e. 999999) or as a percentage of 100. If these values are not achieved after 3 bars, you are exited from the trade.
Artici  
#4 Posted : Wednesday, January 15, 2014 12:31:48 AM(UTC)
Artici

Rank: Member

Groups: Registered, Registered Users, Unverified Users
Joined: 12/1/2013(UTC)
Posts: 12

Thanks haddison and MS support.

Any place I can find all these functions and their explanation, example ?

MS Support  
#5 Posted : Thursday, January 16, 2014 12:07:19 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
With MetaStock 12 and 13, there are currently some issues with these Simulation functions and they are not properly working. That said, the Simulation functions are explained in the Paste Functions dialog of a formula. You can open the Indicator Builder, click New, and click into the formula box and click Functions. Scroll down the list of categories and choose Simulation. You can stretch the box wider but there will be descriptions of the various simulation functions.

The ones that look like they are truncated were added to the F1 help (the others were not). You can open F1 Help, click the Index tab and type in Simulation and then double click on the Simulation Functions help topic for a full description of the truncated functions.

Stops you can get more information on within the F1 Help. If you Edit a system test, click the Stops tab, you can also click the Help button in the lower right to go directly to that topic.
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.