view Setprofittarget Setstoploss

Questions about MultiCharts and user contributed studies.
waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

view Setprofittarget Setstoploss

Postby waldem » 18 Apr 2016

hallo team, there is the possibility to view on chart the line of Setstoploss and Setprofittarget like in TS?
i've already tried using function TL_New..... but i receive Line0 error; very strange, only if i put Setstoploss inside on Trendline...

you should think to visualize it in the future?

waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: view Setprofittarget Setstoploss

Postby waldem » 18 Apr 2016

also print function seems not work, if i try :
print (Setprofittarget(500));
i get error "incorrect argument".

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: view Setprofittarget Setstoploss

Postby TJ » 18 Apr 2016

also print function seems not work, if i try :
print (Setprofittarget(500));
i get error "incorrect argument".
It does not work because your profit target of $500 does not translate to a price level.

You will need a logic to calculate the exact price from the entry point.

waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: view Setprofittarget Setstoploss

Postby waldem » 18 Apr 2016

yes TJ, i can understand the syntax problem, but anyway for MC always mean a price where to exit, therefore is stubid that i have to recalculate by logical expression to view it..
in TS is a flag that show these keyword.
maybe in future should be possible also in MC.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: view Setprofittarget Setstoploss

Postby Henry MultiСharts » 19 Apr 2016

Hello waldem,

Are you referring to backtesting or forward testing or data playback or realtime trading with broker?

waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: view Setprofittarget Setstoploss

Postby waldem » 19 Apr 2016

realtime at broker.
i use those commands on future and in other code i usually plot the level on chart just for my feeling.
w.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: view Setprofittarget Setstoploss

Postby Henry MultiСharts » 19 Apr 2016

Waldem, in order to see the active orders for the instrument you need to open the chart trading panel, select the broker profile and the account you are using for the auto trading.

User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Re: view Setprofittarget Setstoploss

Postby Smoky » 19 Apr 2016


You will need a logic to calculate the exact price from the entry point.
TJ don't forget that now we have "SetProfitTarget_pt" much easyer to compute level in ticks :)
(better when you trade with many shares, level stay identical not $ amont ...)

Usage
SetProfitTarget_pt(Amount)

Where: Amount - a numerical expression, specifying the profit target amount in ticks.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: view Setprofittarget Setstoploss

Postby TJ » 19 Apr 2016


You will need a logic to calculate the exact price from the entry point.
TJ don't forget that now we have "SetProfitTarget_pt" much easyer to compute level in ticks :)
(better when you trade with many shares, level stay identical not $ amont ...)

Usage
SetProfitTarget_pt(Amount)

Where: Amount - a numerical expression, specifying the profit target amount in ticks.
You still need a logic to calculate the target price from the entry point.

waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: view Setprofittarget Setstoploss

Postby waldem » 20 Apr 2016

i see nothing Henry..
maybe some other settings..
Attachments
bund.png
(198.6 KiB) Downloaded 1358 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: view Setprofittarget Setstoploss

Postby Henry MultiСharts » 20 Apr 2016

i see nothing Henry..
maybe some other settings..
Were there any active orders for the instrument at that moment in the Order and Position Tracker - Orders tab?

waldem
Posts: 115
Joined: 18 Nov 2013
Has thanked: 3 times
Been thanked: 4 times

Re: view Setprofittarget Setstoploss

Postby waldem » 20 Apr 2016

of course, at this time i forgot to tell you that there was one sell limit and now there are 2 order submitted.
Attachments
bund.png
(152.08 KiB) Downloaded 1370 times

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: view Setprofittarget Setstoploss

Postby Henry MultiСharts » 20 Apr 2016

waldem, you need to contact your broker directly regarding this issue as you are using a third party broker plugin.


Return to “MultiCharts”