NexusFi: Find Your Edge


Home Menu

 





Can't sell at Profit Target


Discussion in TradeStation

Updated
    1. trending_up 1,405 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
hgchcw
Hong Kong + Hong Kong
 
Posts: 18 since Feb 2019
Thanks Given: 9
Thanks Received: 0

In tradestation, I want to set Profit Target at 5%. So I input the following codes,

if Condition1 and Condition2 and Condition3 then
Begin
Buy ( "A" ) next bar at market ;
Setstopshare;
setProfitTarget(Close*0.05);
End

The Close price at which the share is bought is 242.79, so 5% profit is 254.92. I have printed Close*0.05 and confirm it can calculate correctly. But I've found that tradestation can't sell at 254.92 at the first 4th times. It sell at the 5th time where the price is down to 254.92. The following attaches the captured screen. It circles the first 4th chances Tradestation can't sell the share. Why? Am I misunderstand the usage of SetProfitTarget in tradestation? If so, what should I do to set Profit Target at 5%?



Thanks,
Raymond


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
One Wallet Made $200K in Hours: AP Probes Polymarket Cea …
Prediction Markets & Event Contracts
Powell in 48 Hours: Word Markets Give 78% on Inflation, …
Prediction Markets & Event Contracts
Ceasefire Collapse: Iran Fires 24 Missiles, Israel Hits …
Traders Hideout
Victory Day Delivers: Russia-Ukraine Ceasefire Market Cl …
Prediction Markets & Event Contracts
Iran and Israel Stand Down: What $9M in Peace Contracts …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,642

Raymond,

when you place built-in exits within conditional statements, they would only be issued while the conditions are true and not placed on all other bars. You could place them unconditionally and set the target amount within your conditional branch.

Regards,

ABCTG


Follow me on X Reply With Quote




Last Updated on June 3, 2019


© 2026 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 - Downloads - Top
no new posts