Jump to content

paqueuc

*Subscriber*
  • Content Count

    18
  • Joined

  • Last visited

Posts posted by paqueuc


  1. Hi @peterB,

    In the same idea, I have a weird thing going on with my "sell 100%" hotkey. Very simple need, get out completely of the remaining position (like the "Panic" button but without exiting the other positions).

    It used to work but I made a few adjustements on other entry hotkeys and then, this one doesn't work anymore.

    Here is the script I want to fix:

    CXL ALLSYMB;ROUTE=SMRTM;Price=BID 0.05;Price=Round2;Share=Pos*1;TIF=DAY+;SELL=Send

    When I enter a long position with this script :

    CXL ALLSYMB; StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=100/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/4;Share=Share*4;TogSShare;ROUTE=SMRTM;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=1000;Price=Ask-StopPrice*3+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.25 TIF:DAY+;Price=Ask-StopPrice*5+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.25 TIF:DAY+;Price=Ask-StopPrice*7+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.25 TIF:DAY+;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos*.25 TIF:DAY+;

    I get this type of position :

    Sell-strange-behaviour.PNG.cfff272ac9a995033888f7cb1e871cea.PNG

    Then, when I press the "sell 100%", Instead of getting everything out like the Panic button, I get this :

    Sell-strange-behaviour-2.PNG.70f2f8cb37fe2e3d7242852b34c498b5.PNG

    And pressing Sell 100% again doesn't change anything. I can only exit by pressing the Panic button.

    In another test with a slightly different code, I could cancel all the existing orders, but the position was still open. Not very useful either.

    Could you tell what is going wrong, please ?

    Thanks a lot.

    Best,

    Pierre

     


  2. Hello,

    Your Hotkey works great, thanks @Day-Meister.

    I would like to adapt it to my needs = 3 TP instead of 4.

    1  TP at 3R

    1 TP at 4R

    1 TP manual for the rest.

    10$ risk trade.

    I wrote this  :

    Long

    CXL ALLSYMB; StopPrice=Price-0.01;DefShare=BP*0.97;Price=Ask-Price+0.01;SShare=10/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/3;Share=Share*3;TogSShare;ROUTE=LIMIT;Price= Ask+0.05;TIF=DAY+;BUY=Send;DefShare=1000;Price=Ask-StopPrice*3+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.3 TIF:DAY+;Price=Ask-StopPrice*4+Ask;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:StopPrice HighPrice:Price ACT:SELL QTY:POS*.3 TIF:DAY+;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos*.3 TIF:DAY+;

    Short

    CXL ALLSYMB; StopPrice=Price+0.01;DefShare=BP*.97;Price=Price-Bid+0.01;SShare=10/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/3;Share=Share*3;TogSShare;ROUTE=LIMIT;Price= bid-0.05;TIF=DAY+;SELL=Send;DefShare=1000;Price=StopPrice-Bid*3;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.3 TIF:DAY+;Price=StopPrice-Bid*4;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.3 TIF:DAY+;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos*.3 TIF:DAY+;

    The trouble is that it creates orders with quantities that are not equals on the entry and the exit.

    Example :

    It buys 48 shares (entry)

    and it creates 3 orders (exit) with 15 shares each.

    On the exit side, I have 15 shares X 3 orders = 45 shares. So when the stop loss is hit, there is still 3 shares in open positions.

    Sorry, I tweaked it a bit but didn't manage to find the trick yet. Could you help me, please ?

    Thanks a lot.

    Best,

    Pierre

     


  3. Hello,

    In the break of the High of day strategy, I'm looking for a hotkey that would do :

    -place a Stop buy order above the current price with one click on the chart (not two clicks like the one described here) .

    -Set the stop loss automatically at $ 0.8 below (variable that I can change in the script)

    -Defined risk of $100 (variable that I can change in the script, too).

    Maybe I have seen this on this  Thread but I can't test it right now unfortunately to know if that fits my needs.

    And of course, if possible, I would like the same one for the Break of the low of day strategy with a Sell stop order placed with one click below the price, please.

    Last  but not least, would it be possible to add a target profit of 1,6 (2:1R, for example) on this script ? If not, not a big deal.

    Thanks for any help.

    Best,

     


  4. You're right. On paper only as BP decreases when volatility increases. In March 20, I got a margin call, so I understood it very well.

    Today, I'm focusing on risk per trade only. 6X is just a confortable margin to forget that you have a BP to deal with (under "normal market cconditions", we do agree).  PCT just reminds me that this detail also exists and it is fine. I quite agree with you regarding the goal of PCT, I'm here for this exact reason : process and consistency. I'm not looking for a seat at the end of the bootcamp and I don't care if I reach the 10K goal or not. I just want to be consistently profitable at the end of the bootcamp as I'm currently in the breakeven zone since 2 years now.

     


  5. Yes  @peterB. I do agree. Honnestly, I don't care about the profit target. The rules are clear. I just want to learn and improve.

    The starting point was that 1% risk / trade commonly seemed to be an acceptable ratio in the real life. As I'm growing, I'm more willing to take less and less risk, even in my real trades. Currently, I'm thinking about 0.5 to .8% / trade. And here at PCT, I was thinking even lower, around 0.3% ($300) just to be able to make a lot of errors and progress. Now, the Buying Power comes in to play in PCT and I didn't see it (That is the reason of my question). In IB, I currently have around  a 6X buying power. It never restricted me to have 2 or 3, 1% risk trades on at the same time, so I didn't think of this detail anymore.

     


  6. Thanks @Day-Meister and @peterB,

    I'm currently in the Peak Capital Trading demo DAS account. I don't know the BP set on this account. But with Day-Meister's explanation, I got a key that I didn't see before. I'll give it a try.

    If we are willing to risk a maximum of 1% per trade and dealing with a maximum of 2 trades at the same time, do we need to take this extra caution of reducing our BP by 50 % ? What's the real motivation of doing this ?

    Before DAS, I was using TWS with IB and never got a margin problem on my live account when I was risking 1% of my account on a single trade. I could even run 2 or 3 trades at the same time without issue. But I don't know how DAS manages - interact with the IB buying power...

    Thanks for your thoughts on this.


  7. Hi @Day-Meister,

    Thanks for your script, it works nearly great.

    I chose the following one (short - $ risk / trade) where I replace the value 50 by 300 in order to have a $ 300 risk trade (capital 100 K)

    Quote

    CXL ALLSYMB; StopPrice=Price+0.01;DefShare=BP*0.5;Price=Price-Bid+0.01;SShare=300/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;Share=Share/4;Share=Share*4;TogSShare;ROUTE=SMRTL;Price= bid-0.05;TIF=DAY+;SELL=Send;DefShare=1000;Price=StopPrice-Bid*2;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.25 TIF:DAY+;Price=StopPrice-Bid*3;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.25 TIF:DAY+;Price=StopPrice-Bid*4;Price=Bid-Price;TriggerOrder=RT:STOP STOPTYPE:RANGE LowPrice:Price HighPrice:StopPrice ACT:BUY QTY:POS*.25 TIF:DAY+;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice+0.3 ACT:BUY STOPPRICE:StopPrice QTY:Pos*.25 TIF:DAY+;

    When I replace the value 50 by 100, it works perfectly. I get the good amount of shares so that my total risk = $100. Perfect.

    But in the script above, when I replace 50 by 300, I don't get a $300 risk. Even stranger, I made 3 trades on AAPL as a test tonight and I got the exact same amount of shares (344) opened, regardless the size of the risk.

    Example 1 : entry = 145.16 / stop loss = 145.53 => risk = $0.37 / number of shares = 344 / total risk = $127.28

    Example 2 : entry = 145.11 / stop loss = 145.2 => risk = $0.09 / number of shares = 344 / total risk = $30.96

    Example 3 : entry = 145.32 / stop loss = 145.74 => risk = $0.42 / number of shares = 344 / total risk = $144.48

    Did I do something wrong ?

    Thanks for your help.

    Best,

    Pierre

     


  8. Hi Peter,

    Im' not sure I understand what you mean.

    Currently, what I was up to was :

    1/ Market order with a stop loss via Kyle's script in a first hotkey. OK, this one works fine.

    2/ I would have liked to set up  a second hotkey for a Take profit via double clicking on the chart for X% of the position, regardless of the stop loss and R:R.

    It is not possible this way ?

    If not, OK, I'll go for a range hotkey, instead.

    Thanks Peter.


  9. Hi,

    The answer to my question is probably somewhere in the forum but I wasn't able to find it yet (after 2 days of searching and testing various options).

    I would just want a very simple "on the chart Take profit target", please. In the Kyle's file there is  "price target" based on R:R but I get a "script invalid operator" in DAS (this function is not quite what I would want but at least, this would have been a first step).

    My starting point is a market order with a stop loss on chart that works great :

    StopPrice=Price-0.01;DefShare=BP*0.97;Share=DefShare*0.167*Price*0.005;Price=Ask-Price+0.01;SShare=Share/Price;Share=DefShare-SShare;DefShare=DefShare+SShare;SShare=Share;Sshare=DefShare-SShare;Share=0.5*SShare;TogSShare;ROUTE=LIMIT;Price= Ask+0.05;TIF=DAY;BUY=Send;DefShare=100;TriggerOrder=RT:STOP STOPTYPE:MARKET PX:StopPrice-0.3 ACT:SELL STOPPRICE:StopPrice QTY:Pos TIF:DAY;

    Then I would just want to double click on the chart to set my Profit Target based on technical levels (25% of the position for example) . That simple. Sorry I just struggle with this simple key.

    Thanks for your help.


  10. Hi everyone,

    Sorry to deter this old subject, but one more question before choosing between "DAS Trader pro with IB" or "DAS Simulator", please :

    Does "DAS Trader Pro with IB" simulator part includes a replay mode or is it only a simulator on live data ? Or do we have the replay mode only on the "DAS Simulator" ?

    Thanks for your quick reply,

    Best,

    Pierre


  11. Hi everyone,

    My name is Pierre and I'm from France. I'm 48 yeas old. I used to be an entrepreneur until 2018 when I sold my company. Since then, I'm investing mainly in real estates. I've tried trading since 3,5 years  now but never been profitable. I've tested various kind of products : laggards stocks (2 months), options (3 years), swing trading (2 months), Forex (2 months), cryptos but through DCA bots only (2 months an still going on).

    I stopped options trading as I merely did 10% profit after 2 years of active trading (2020 / 2021). Hopefully, I can do more, here.

    I'm OK with risk management. But, appart from options, I'm not consistent in my trading journey. I'm here to learn consistency and find confidence in trading strategies.

    Cheers,

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.