While(currentLevel dBid + gStopLevel * Point // Broker value for distance from price we can put OrderEntryPrice or OrderTakeProfit / SL Print("Currentlevel = ", currentLevel) Void PlaceGridTrade() // I think we only need current level, we get the other data from the input sĭBid = SymbolInfoDouble(_Symbol, SYMBOL_BID) // Get BidPrice = CurrentPriceĭAsk = SymbolInfoDouble(_Symbol, SYMBOL_ASK) // Get AskPriceĭouble currentLevel = NormalizeDouble((dBid - (2 * G1BSSpace * Point)), Digits) // back down price to below price to find a valid currentLevel 80 90 100 for exampleĭouble upLimit = dBid + (G1BSWinUp * Point) ĭouble loLimit = dBid + (G1BSStayback * Point) ĭLots = G1BSLots * AccountEquity() / 100000 // adjust to $100k account Input int G1SLEngine = ORDER_TYPE_SELL_LIMIT Input int G1BLEngine = ORDER_TYPE_BUY_LIMIT Input int G1SSEngine = ORDER_TYPE_SELL_STOP Input int G1BSEngine = ORDER_TYPE_BUY_STOP Input int G1BSSL = 1500 // Set at 1500 as in far away Maybe some brilliant minds here may have some more clues to the answers.Input string GridVariables = "-Grid Variables in Points" By observing the relationship between the previous ZigZag leg's high/low price digital root combination and the digital roots of the price levels that the price reverses on, over time a relationship formula should become clear. With that in mind, the high/low price digital root combinations make all digital root numbers from 1 to 9 significant in forecasting price reversals but I'm still trying to figure out exactly how that works. Also, if you add the digital roots of the high and low prices of the previous ZigZag leg then the resultant number gives an indication of what price levels the price is most likely to bounce on. It all seems a bit mystical but there seems to be some truth in it that I feel can benefit traders. He's a bit of a maths genuis when it comes to the complex stuffīy the way, Nikola Tesla said that, "If you only knew the magnificence of the 3, 6 and 9, then you would have a key to the universe." So I'm experimenting to see how the market reacts to level prices with digital roots of 3, 6 or 9 and to the variations of those 3, 6 and 9 digital roots since level prices with the same digital roots are different if they come from different previous two-digit source numbers. This is an interesting question so just tagging Mladen on this. I would like to see the previous two-digit source numbers of their digital roots calculated and listed as well but I couldn't figure out how to do it. Here is the test code I wrote that prints out a comment list of 10 numbers and their digital roots. For a digital root of 4, the last source two-digit numbers can be either 13, 22 or 40, so my question is, can the MathMod function be used in any way or with some other functions to find those final previous two-digit source numbers instead of the single-digit final dgital root? If MathMod can be used in this way together with some other functions then can someone please help and explain how this can be done? Thank you very much. However, the last 2-digit source numbers for each of those 10 numbers are sometimes different. Since digital roots don't change by adding 9, all the digital roots of the 10 numbers are 4. DigitalRoot = MathRound(1+MathMod((Price/points*10)-1,9)) įor simplicity in the test code below I just used a starting non-decimal number instead of a price, incremented the original number by 9 and printed that list of 10 numbers along with their digital roots.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |