Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

BlueHorseshoe

Market Wizard
  • Content Count

    1399
  • Joined

  • Last visited

Posts posted by BlueHorseshoe


  1. Hello

     

    When loading my indicator over the chart, i got an error message: Error in study " Name of my study" : {Exception} Opération en virgule flottante non valide)

     

    How do I debug that.

     

    Variables:
      Position(0);
    
    Position= absvalue(Open-((High+Low)/2)) / (High-Low);
    If (High-Low) <> 0 then
    Plot1(Position, "Position");

     

    Any help appreciated

     

     

    Hey there,

     

    'Position' is an easylanguage reserved word - you can't make it a variable within your code (in just the same way as you can't make 'Buy' or 'High' a variable).

     

    Change this to something like MyPos and you will be fine (I just tested it!).

     

    Kind regards,

     

    BlueHorseshoe


  2. Hey guys,

     

    Just wondering where to find current readings of the hindenburg omen. Studying crashes from the past to see if its an indicator worth keeping. But cant find it on stockcharts, freestockscharts or yahoo. it is a chart indicator right?

     

    Thanks everyone!

     

    Maybe you should look at Hydrogen Futures?

     

    :)

     

    If there was any simple way to predict these things then the world would be a different place. The very fact that they are able to unfold when they do is defined by a quality of unexpectedness.

     

    You could look at Global Macro approaches, but don't use leverage, be prepared to take some heat, and admit when you are wrong. When it goes your way (the underlying event driving price, not just the trade) then scale into it.

     

    Or you can try and profit from the failure of others to correctly price the probability of these things occurring - take a look at what Nassim Taleb did with options.

     

    Don't get drawn in by some nonsense prognosticator of doom. There's always one out there. Might be something to do with a fib level or might be something to do with rising interest rates . . . don't get dragged into it. These people sell doom because . . . well, because it sells!

     

    Kind regards,

     

    BlueHorseshoe


  3. A tactic that some traders used alot in the past was to scan several stocks for an abnormal wide spread in that particular stock and place an inside bid to buy ..limit order..and then when filled place and inside offer to sell thus attemping to take a slice out of the wide spread. Or vice versa on the short side. They would look at the size of the present inside bid and offer to determine where the pressure was..i.e. long or short side.... and then implement the technique accordingly. This could be done over and and over until the MM or specialist ...if NYSE.... determined what one was doing and narrowed the spread thus removing the opportunity.

     

    I guess you could even do this simultaneously in numerous stocks to try and remain delta neutral to any sudden sector or index shift?

     

    For the OP: if what Patuca is discussing is of interest you might like to do a bit of research into the 'SOES Bandits'. I'd also recommend Scott Paterson's book 'Dark Pools'.

     

    BlueHorseshoe


  4. BlueHorseshoe, thanks for your thorough explanation. Those are definitely helpful to my learning of the market. If you don't mind I follow up with a couple more questions.. I wanna see if I understand correctly. So, in any given moment, with any stock, any bid/ask spread. The prices at Bid or Ask are "passive orders" entered by Market Makers? what about people like myself? Are my buy or sell orders(say lower than bid or higher than ask) buried within a long queue of orders? Sorry. I'm a little confused. :doh:

    I understand market makers' job is to provide liquidity in the market, but then why are certain stock have so illiquid and have huge bid/ask spread? Does this mean they're not involved in the particular stock? Thank you.

     

    Hello,

     

    Sorry for the delayed response!

     

    The Bid & Ask are always "passive" orders, but they're not necessarily Market Maker's orders. You too can post a limit order and be passive - just wait to see if it gets filled.

     

    Where your orders sit in the queue will depend on the contract/security and the exchange it trades on.

     

    Stocks on the NYSE will, I think, still have Market Makers (known on that exchange as 'specialists'). They probably get priority on fills (ie their passive limit order is moved to the front of the queue regardless of when they join), I can't remember for certain though.

     

    An instrument like the e-mini S&P futures contract, which trades on the CME, is operates on a FIFO basis ('first in, first out'), which means no matter who you are you join the back of the queue at the time you join. The only way to become front of the queue is if the orders ahead of yours are either cancelled or filled.

     

    I am not certain, but I think I recall that there are still (electronic, and probably HFT) a form of Market Maker for these futures products as well, called "designated liquidity providers". They get perks (rebates, waived exchange fees etc), but not priority in the queue.

     

    With regard to wide spreads . . . the spread is only as wide as you and other traders make it. If you post inside the spread you will narrow it. In very liquid instruments the spread is kept at the minimum price increment of one tick or one cent at all but the most volatile of times. I can count on one hand the number of times I've seen a two tick spread in the ES last more than the blink of an eye.

     

    Finally, all various forms of Market Maker have specific mandates to work with. A common requirement is that they maintain both a bid and ask at all times (needn't be the best bid and ask though). Another is simply that account for a certain volume of trading per day. Market makers and market-making algorithms from electronic trading firms may still be present when the Bid and Ask are wide - they just don't see any need to help narrow it by posting inside it. Remember, they make their money from the spread, so they want it wide.

     

    If you have any more questions then let me know and I will do my best to answer.

     

    Kind regards,

     

    BlueHorseshoe


  5. anyone has a sample code for the following?

     

    buy whn stoch<30 and exit 5 bars from entry

     

    if next day stoch is <30 buy another unit and exit 5 bars from entry

     

    if next next day stoch is <30 buy another unit and exit 5 bars from entry

     

    try code them but the second and third entry all exit at the first exit altogether rather 5 bars from entry

     

    Hi Johni,

     

    There are lots of ways you could do this. It's late at night, and this is the first way that springs into my tired brain (might not be the best):

     

    If x<30 then begin
    buy "EntryA" 1 contract this bar;
    countA=1;
    end;
    
    if countA=1 and countA[4]=1 and countA[5]=0 then begin
    sell "EntryA" 1 contract this bar;
    countA=0;
    end;
    
    If x<30 and x[1]<30 then begin
    buy "EntryB" 1 contract this bar;
    countB=1;
    end;
    
    if countB=1 and countB[4]=1 and countB[5]=0 then begin
    sell "EntryB" 1 contract this bar;
    countB=0;
    end;

     

    You can suss out EntryC for yourself from this. You'll also need to set up the count variables.

     

    Give it a go and let me know how you get on!

     

    BlueHorseshoe


  6. Fresh Pasta...

     

    Anyone who makes fresh pasta has their own mix that they enjoy. I like semolina flour, but 100% semolina can seem a bit leathery to some tastes (mine included). I've found that a 4 to 1 mix of semolina to bread flour works well, and pleases everyone. It has a nice tooth, but the mix of bread flour provides a certain quality of softness and feel that is pleasing. Any opinions are welcome.

     

    Maybe try using your 4:1 of durum and soft wheat, but ensure the latter is '00' ground.

     

    You could see if you can track down this UK series from a few years back:

     

    Simply Italian - Episode Guide - Channel 4

     

    It claims to be about Italian cuisine more broadly, but it was entirely about pasta making. And the presenter is somewhat 'easy on the eye' :)

     

    BlueHorseshoe


  7. All men are not equal in ability and all consultants are also not equal in ability and in a world where only the top few make it, quality, not price, is the prime consideration.

     

     

    UB

     

    Hi Urma,

     

    I wasn't challenging the quality of the recommendation, nor looking for an argument.

     

    Best wishes,

     

    BlueHorseshoe


  8. All due respect Blue, but over the years I have used a selection of those listed and found Martin to be the best by far.

     

    Hi Urma,

     

    I don't doubt that - but if you post such a singular endorsement it's likely just to be taken down by the moderators. As soon as you acknowledge that he is one option amongst many, you're given much more general information and then stating a preference.

     

    As well as this, isn't it always good to point out to the OP that EL is relatively simple to learn to code (at the level the OP currently requires) and will serve as an invaluable tool in their development as a trader, allowing them to test the validity of their ideas before committing money to a strategy?

     

    Maybe I should stop interfering :)

     

    Kind regards,

     

    BlueHorseshoe


  9. I have worked with him for years and wholeheartedly recommend him.

     

    While JAM is a very well respected company, it is worth noting that there are other programmers out there ;)

     

    You'll find a list of those endorsed by TS (including Miller) on their website. Whoever you use, I would expect to pay a minimum of around $90 per hour . . .

     

    Kind regards,

     

    BlueHorseshoe


  10. In the Apendix E PDF, Db talks about "The dynamics of fear"

     

    "...dynamics of fear (fear of making the wrong decision, fear of losing money, fear of missing

    out, fear of holding too long, fear of not holding long enough, fear of being tricked, fear of

    being trapped, fear of being blind-sided, etc, etc, etc)..."

     

    Regarding this, I would like to start a discussion about the way fear shows itself in the charts, as I realized there is not really much understanding (at least from my side) about how to read fear in RT.

     

    If there is no reply, I will assume I am the only one interested and therefore move on on my own.

     

    For starters, today is as good as any day to start.

     

    What were traders afraid of during the first 90 mins of trading?. What motivated them to avoid committing and paying higher prices or receiving lower prices, what happened at 10:15 that prompted that strong up wave, was it bears afraid of being in the wrong side, was it bulls afraid of missing out?

     

    Hi Niko,

     

    You seem to be talking about two different types of fear: fear of missing out (greed) and fear of losing money and being wrong. Not sure how helpful the distinction is, but they may result in different behaviour?

     

    In the extreme instances, poor traders may chase a market that is running away without them, and run away from a market that is moving adversely against them (the old "I'll just move my stop and give it another couple of ticks" routine).

     

    As soon as you break volume down into trades at bid and ask, you can see a glimpse of what might be going on there (both these types of traders are likely to use market orders to enter and exit), but you can never be certain whether those trades are mostly establishing or liquidating positions.

     

    Hope some of those thoughts are helpful to you.

     

    Regards,

     

    BlueHorseshoe


  11. 123xiis.jpg

     

    Take the trade in the direction price leaving the daily wick zones.

     

    Of course, trade with the H1 and D1 candle colors.

     

     

    Hello,

     

    I've just watched your video, and I have to say that I actually quite like this idea, and am about to devote an hour or two to testing it. All good approaches seem to come from a simple starting point such as this.

     

    I'll just note that the "raw probabilities" you display don't necessarily translate into a workable strategy - something may well happen 75% of the time, but what damage does the remaining 25% do to your balance? And of that 75%, what kind of adverse excursion do you have to sit through to net a profitable outcome?

     

    All food for thought . . .

     

    Regards,

     

    BlueHorseshoe


  12. I think (and it is a humble opinion), if you are patient, and wait for your opportunities HFT should have little effect on your trading.

     

    That's literally the bottom line, really - if you can make it work then it works, and why even worry about HFT?

     

    You can bet that the HFT algos and anyone else who profits in any other timeframe patiently awaits their opportunities, so you can only do the same.

     

    The only reason I have ever concerned myself with them is due to the fact that the types of short-term opportunity I have identified have given such insufficient margin for error that market microstructure can erode 100% of the gains . . . But that's not relevant to anyone who can identify better opportunities intraday than I have been able to :)

     

    BlueHorseshoe


  13. Nevertheless, we are all learning about hft's and may find it does affect us more than we first thought.

     

    I agree. It's difficult to know what goes on (beyond what you read, which may be lies and disinformation), but is that any different to in the past? How many people off the floor in the 80s knew what traders in the pits really did, or what strategies they used? How many people know that information even today?

     

    Ultimately you've just got to trade with the information you have, or not trade at all . . . And though you may not know how you will fair in the future, you can at least know how you would have faired in the past, HFTs and all else included.

     

    BlueHorseshoe


  14. The other question that comes to mind is... Does it really matter? I can understand the argument that large investment firms have with HFT. I mean you're trying to transact trades on millions of shares per day, and someone is front running your trades... pisser.

     

    For me and my 3000 ms latency... price ticks up, it ticks down, and I catch it somewhere in the middle, or the high end, or the low end... for me it's a wash.

     

    Is it a wash though?

     

    Or can it cause you to be adversely selected a higher percentage of the time?

     

    Consider this - you want to buy if price falls to X. You place a limit order there. The HFT is also bullish, and they have a limit order ahead of yours in the queue. The first order trades at X. Neither of you is filled. But the HFT suddenly gets spooked and recognises that price has some way still to fall. It pulls it's order for 1000 contracts. A seller crosses the spread and hits your bid, and price begins to fall . . .

     

    Who knows what the HFT "saw"? But even if you saw the same thing, you couldn't have pulled your order as fast as they did. The speed with which they are able to abandon a market has caused you to be adversely selected for a losing trade.

     

    The alternative is that the HFT remains convinced that X will be a bottom, and leaves its order in situ. Five hundred sellers hit the bid, you're not filled, and price rallies. Want to chase it with a market order? Well then a different type of HFT algo will be waiting to game you . . .

     

    This isn't even about the HFT knowing anything you don't or couldn't know - it's about how fast they are able to respond to that information.

     

    I reckon that if you can implement your strategy entirely with market orders (and those such as stops which translate into them) and make money, then that probably means you're outside the range where HFT can significantly impact your trading.

     

    Regards,

     

    BlueHorseshoe

     

    nb. Having just read your other post: if your average hold time is 120 seconds and losing a tick here and there isn't enough to damage your profitability, then I am rather impressed and more than a little envious :)


  15. I was in another forum and 73% of the respondents said that HFT does not affect their trading. I am in the 73% camp. I don't trade in front of orders and base my entries and exits on price action.

     

    But how would they know? When they suddenly have to transact at worse prices, how would they know whether that was the result of HFT impact on a market?

     

    BlueHorseshoe


  16. Can anyone write these codes?

     

     

    Yes, you can - prorealtime has a very user friendly and easy programming language - teach yourself. I started out with this platform years ago before moving on to tradestation, and it was very straighforward.

     

    Alternatively, you can pay me lots and lots of money to re-acquaint myself with the language and write the code :)

     

    BlueHorseshoe


  17. Moving on to Market Making . . .

     

    • The market maker attempts to earn the spread on each trade. In doing so, they act as counterparty to both Active Buyers and Active Sellers, and therefore facilitate trade, literally "making" the market.
       
    • As a market maker you will typically act passively, having both buy and sell orders in the market at any one time.
       
    • Ideally what you want is for an Active Seller to match your bid at 98 (making you long), and then an Active Buyer to match your ask at 101 (making you flat). This round trip just earned you the spread - 101-98=3 ticks profit.
       
    • Market making has always been a lot more complicated. You might have orders in the market in hundreds of stocks at any one time. Your risk becomes more complicated as soon as you hold a position (you want to complete a round trip as quickly as possible). So you might begin to skew, or "lean" your book, having slightly more sell orders than buy orders, for example.
       
    • Also, having access to the information about the willingness of informed Active market participants, you might begin to develop a slightly longer term directional view of the market, causing you to lean your book further to take advantage of this.
       
    • Much of what HFTs do is just a super high speed version of this, in which computers identify mathematically optimal scenarios based on available information, and can adjust your book in milliseconds as this information changes. Being computers, they can also do this across thousands of markets, internationally, at once.
       
    • Market makers in stocks were typically guys with computers (not HFT) on the floors of stock exchanges. Market makers in options and futures were typically the guys shouting in the pits of futures exchanges. They both did a similar thing. And both have now largely been replaced by HFT.

     

    Hope that all makes sense - please ask any questions!

     

    BlueHorseshoe


  18. Hi, stock trading is pretty new to me. And I'm here to hopefully learn from you experienced traders about all things related to stock markets.

    I have some basic understanding of the market but I have a long way to go. My questions may sound stupid but here they are..

    From my understanding, at any given moment, bid is the highest purchasing price some buyer had entered his order for. And the ask price is the lowest a seller had enter his sell order. I also understand that market makers are suppose to take the opposite side of the trade whenever someone enters the order. But it sound kind of weird. If I were to buy at Ask, who am I exactly getting the shares from? the market maker? or some counter party- a traders like myself who has entered a sell order priced at the Ask..

    Another question is, I've heard all the stock transactions have all become electronic in recent decade. Do market makers still exist? Where are they physically? Were they the one's standing on the exchange floors hollering back and forth?

    Can someone please explain? Thank you.

     

    Hi Mastertonster,

     

    You have the basic idea, so answering your question is easy enough . . .

    • Orders can be divided into two types: passive and active.
       
    • Passive orders are limit orders. They're placed on the order book at the exchange, and will sit their until an Active order fills them. Think of Passive traders as "patient" traders.
       
    • Active traders are "impatient" - they want their order filled now! They use Market orders. They just agree to buy at the lowest price that a Passive trader is willing to sell at (the Ask). Orders that are 'stops' are Active: until price reaches the stop level they are stored on your broker's servers, and then they become a Market order.
       
    • Here's an example . . .
       
    • The highest bid is 98. The lowest ask is 101. The gap between them is known as the Spread.
       
    • If you want your Buy order filled right now, who do you trade with? The best available counterparty is the person who is willing to sell at 101. So you must cross the spread and buy from them at 101, paying 3 ticks more.
       
    • If you try to Buy 50 shares and the Passive sellers at 101 are only offering to sell 20, then you will become a counterparty to the Passive sellers at 102, and so on . . . If the number of Passive sellers is low then your order will be filled at increasingly higher prices - this is known as "slippage".
       
    • If you're willing to be patient, then you can simply join the queue of people willing to buy at 98 by placing a limit order at that price. What you're hoping is that some impatient seller will cross the spread and start selling to the Passive limit order buyers at 98.
       
    • However, this may never happen, or there might be so many people ahead of you in the queue that the Active buyers are exhausted before you find a counterparty.
       
    • If you're Passive you know the exact price at which your trade will execute, but you don't know whether it will happen or not.
       
    • If you're Active then you can be certain that your trade will execute, but you cannot be sure at what price.

     

    BlueHorseshoe


  19. Hi there,

    i started read about a tape reading but after i read some articles about High frequency trading i am worring if its still able to read the tape using Time and Sales when there are many companies using HFT ? :crap:

    what is your opinion ?

     

    Hi Flimbo,

     

    It's a good question. Everyone will have their own experience and their own answer, but I personally never had any success with it. I tried both the "stare at the T&S for hours and it will make sense" approach, and I have also spent a lot of time creating programs that attempted to make sense of the depth of book, and volumes crossing the spread with orders ("market delta").

     

    I certainly don't think it's possible to compete with the HFTs for true scalping in any liquid futures market, even if you automate what you're doing.

     

    In a less liquid market - a single stock for instance, the tape may still provide an advantage?

     

    There's also the question of what you want to do . . . Say you're trading breakouts in the ES, entering a position intraday and then exiting at the close - being able to read market activity around breakout levels to gauge interest from buyers and sellers to identify optimal times to enter a position might be possible with practice. Trying to make this market by reading the tape, trading for single tick profits, I don't think will be.

     

    At the end of the day, most of the information that you will need to make valid suppositions about other participant's actions is not made available. You either need a very clever mathematical way to estimate it, or to devise an approach that makes better use of the information that you do have.

     

    Finally, the following thread might be of interest to you:

     

    http://www.traderslaboratory.com/forums/day-trading-scalping/13811-daytraders-do-you-know-your-enemy.html

     

    Hope that's helpful!

     

    BlueHorseshoe


  20. SetExitOnClose will work fine in sim; in real trading you will need a separate exit instruction as UrmaBlume suggests.

     

    I would use:

     

    if t=1355 then begin
    sell this bar;
    buytocover this bar;
    end;

     

    The explanation from the EL dictionary is copied below.

     

    Kind regards,

     

    BlueHorseshoe

     

    SetExitOnClose is a built-in stop reserved word used to place an order to exit all shares or contracts in all positions on the close of the last bar of the trading session on an intra-day chart.

     

    For historical simulations, SetExitOnClose generates a market order on the bar close event of the last intra-day bar for each day in the chart. When used in an automated strategy placing real-world orders, SetExitOnClose generates a limit order into the post market trading session, (if one exists), otherwise a market order is generated for the open of the next regular session day.

     

    SetExitOnClose by default uses the closing session time specified by the custom session settings of the chart.

     

    SetExitOnClose can only be used in a Strategy.

     

    When automating a strategy, you will not want to use SetExitOnClose as a way to make sure that all of your positions are closed prior to the regular session end time. To do this, you will need to generate a closing order prior to the last bar in the chart.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.