NexusFi: Find Your Edge


Home Menu

 





Profit_Target signal: how it works ??!!


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one ABCTG with 3 posts (0 thanks)
    2. looks_two JohnJo with 3 posts (0 thanks)
    3. looks_3 Dvdkite with 2 posts (1 thanks)
    4. looks_4 pha777 with 1 posts (1 thanks)
    1. trending_up 2,314 views
    2. thumb_up 2 thanks given
    3. group 4 followers
    1. forum 7 posts
    2. attach_file 1 attachments




 
Search this Thread

Profit_Target signal: how it works ??!!

  #1 (permalink)
JohnJo
Mexico city
 
Posts: 15 since May 2019
Thanks Given: 4
Thanks Received: 0

Hope somebody can shed some light on how the "Profit_Target" signal works.
I've tested it in my Live and Demo accounts with completely different and inconsistent results.

My understanding is that "Profit_Target" signal closes a position with a Limit order to ensure the number of ticks configured. Parameters:
>IsPositionBasis: if the profit is per total Position (true), if Contract (false)
>Amount: Number of ticks

My configuration:
>IsPositionBasis: false (so per Contract)
>Amount: 8 (ticks)

Traded: Nasdaq
Sold 6 contracts @9,153.75 Market
Buy Limit 6 @9,153.25

This is a 0.50 usd difference in price. Expected to be 2.0 instead because of 8 ticks configured.

Any help is appreciated.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
Exit Strategy
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
26 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
20 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #2 (permalink)
pha777
Taiwan
 
Posts: 5 since Feb 2020
Thanks Given: 1
Thanks Received: 2

I don't know whether the Nasdaq have the limit order which is send to CME group.
If CME group didn't have limit order ,the limit order will be send when Multicharts receive the price and send the market order.
So it will be "Slip" .

Reply With Quote
Thanked by:
  #3 (permalink)
Dvdkite
Trieste Italy
 
Posts: 162 since Feb 2018
Thanks Given: 131
Thanks Received: 25



JohnJo View Post
Hope somebody can shed some light on how the "Profit_Target" signal works.
I've tested it in my Live and Demo accounts with completely different and inconsistent results.

My understanding is that "Profit_Target" signal closes a position with a Limit order to ensure the number of ticks configured. Parameters:
>IsPositionBasis: if the profit is per total Position (true), if Contract (false)
>Amount: Number of ticks

My configuration:
>IsPositionBasis: false (so per Contract)
>Amount: 8 (ticks)

Traded: Nasdaq
Sold 6 contracts @9,153.75 Market
Buy Limit 6 @9,153.25

This is a 0.50 usd difference in price. Expected to be 2.0 instead because of 8 ticks configured.

Any help is appreciated.


Hello , of course the the profit target is a limit order and It always work for me. I use a form like this:

 
Code
setprofittarget( targetPoints * bigpointvalue);
if you also use setstoploss the same way then you'll have a bracket order (AKA oco order).

Maybe I didn't understood you question ...can you please explane it better and with some pieces of code to comment?

Reply With Quote
  #4 (permalink)
JohnJo
Mexico city
 
Posts: 15 since May 2019
Thanks Given: 4
Thanks Received: 0


Dvdkite View Post
Hello , of course the the profit target is a limit order and It always work for me. I use a form like this:

 
Code
setprofittarget( targetPoints * bigpointvalue);
if you also use setstoploss the same way then you'll have a bracket order (AKA oco order).

Maybe I didn't understood you question ...can you please explane it better and with some pieces of code to comment?

Thanks for the comment. This signal comes standard as a out-of-box in the Multicharts.net platform , I did not code it.
Looking at the source code the statement is:

>Signal: "Profit_Target"

 
Code
namespace PowerLanguage.Strategy
{
    [IOGMode(IOGMode.Disabled)]
    public class Profit_Target : SignalObject
    {
        public Profit_Target(object ctx) :
            base(ctx)
        {
            Amount = 8;
        }

        [Input]
        public bool IsPositionBasis { get; set; }

        [Input]
        public double Amount { get; set; }


        protected override void CalcBar(){
            CurSpecOrdersMode = IsPositionBasis ? ESpecOrdersMode.PerPosition : ESpecOrdersMode.PerContract;
            GenerateProfitTarget(Amount);
        }
    }
}

My point is, for the Nasdaq an Amount = 8 (ticks) corresponds to 2 points so the order should have closed with a sell price = 9,153.75 - 2.00 = 9,151.75 and not 9,153.25 as it did.

Reply With Quote
  #5 (permalink)
Dvdkite
Trieste Italy
 
Posts: 162 since Feb 2018
Thanks Given: 131
Thanks Received: 25


JohnJo View Post
Thanks for the comment. This signal comes standard as a out-of-box in the Multicharts.net platform , I did not code it.
Looking at the source code the statement is:

>Signal: "Profit_Target"

 
Code
namespace PowerLanguage.Strategy
{
    [IOGMode(IOGMode.Disabled)]
    public class Profit_Target : SignalObject
    {
        public Profit_Target(object ctx) :
            base(ctx)
        {
            Amount = 8;
        }

        [Input]
        public bool IsPositionBasis { get; set; }

        [Input]
        public double Amount { get; set; }


        protected override void CalcBar(){
            CurSpecOrdersMode = IsPositionBasis ? ESpecOrdersMode.PerPosition : ESpecOrdersMode.PerContract;
            GenerateProfitTarget(Amount);
        }
    }
}

My point is, for the Nasdaq an Amount = 8 (ticks) corresponds to 2 points so the order should have closed with a sell price = 9,153.75 - 2.00 = 9,151.75 and not 9,153.25 as it did.


Hello but sorry I thought you were using the easylanguage version of MC. I'm sure that someone with a better knowledge of MC.net will reply...

Reply With Quote
Thanked by:
  #6 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

JohnJo,

it might make sense for you to check the symbol settings in Quotemanger to make sure that they are correct (especially Price Scale, Min Move and Big Point Value). It is a good practice to check these for every symbol you add as MC might not add the correct ones by default. Since the platform uses these values to compute the value and size of a tick wrong settings here can cause a lot of problems further down the road.
You can find the correct settings for a symbol for example on the website of the exchange.

Regards,

ABCTG


JohnJo View Post
Thanks for the comment. This signal comes standard as a out-of-box in the Multicharts.net platform , I did not code it.
Looking at the source code the statement is:

>Signal: "Profit_Target"

 
Code
namespace PowerLanguage.Strategy
{
    [IOGMode(IOGMode.Disabled)]
    public class Profit_Target : SignalObject
    {
        public Profit_Target(object ctx) :
            base(ctx)
        {
            Amount = 8;
        }

        [Input]
        public bool IsPositionBasis { get; set; }

        [Input]
        public double Amount { get; set; }


        protected override void CalcBar(){
            CurSpecOrdersMode = IsPositionBasis ? ESpecOrdersMode.PerPosition : ESpecOrdersMode.PerContract;
            GenerateProfitTarget(Amount);
        }
    }
}

My point is, for the Nasdaq an Amount = 8 (ticks) corresponds to 2 points so the order should have closed with a sell price = 9,153.75 - 2.00 = 9,151.75 and not 9,153.25 as it did.


Follow me on Twitter Reply With Quote
  #7 (permalink)
JohnJo
Mexico city
 
Posts: 15 since May 2019
Thanks Given: 4
Thanks Received: 0


ABCTG View Post
JohnJo,

it might make sense for you to check the symbol settings in Quotemanger to make sure that they are correct (especially Price Scale, Min Move and Big Point Value). It is a good practice to check these for every symbol you add as MC might not add the correct ones by default. Since the platform uses these values to compute the value and size of a tick wrong settings here can cause a lot of problems further down the road.
You can find the correct settings for a symbol for example on the website of the exchange.

Regards,

ABCTG

Thanks for the suggestion. Just checked the settings in Quote Manager (see printscreen attached):
-Min movement = 25 , (the minimum tick value of a move is 0.25 , is the 25 correct ??)
-Big point value = 20 (value in usd of each point)



Help is appreciated

Attached Thumbnails
Click image for larger version

Name:	NQH0 config in Quote manager.JPG
Views:	163
Size:	32.6 KB
ID:	286075  
Reply With Quote
  #8 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

JohnJo,

MC computes a tick by multiplying Price Scale and Min movement. The settings on the screenshot are correct.

Regards,

ABCTG


JohnJo View Post
Thanks for the suggestion. Just checked the settings in Quote Manager (see printscreen attached):
-Min movement = 25 , (the minimum tick value of a move is 0.25 , is the 25 correct ??)
-Big point value = 20 (value in usd of each point)



Help is appreciated


Follow me on Twitter Reply With Quote




Last Updated on February 5, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts