Pages:
Actions
  • #1 by bonecrusher on 27 Oct 2013
  • Hi Guys,

    I am trying to find the best way to stop a trigger from betting if the second FAV is to close to the favourite in price.

    This is what i am using and it does not seem to work properly:

    second favs back price is equal or greater     r_ticks(r_1_back_price,2)

    I believe this is for 0.20 cents, but it does now work, is there another way i can try. or an extra condition i could add???

    I need it for 0.16 cents or greater

    Thanks in advance for any ideas.

    Best Regards

    BONECRUSHER  8)
  • #2 by JohnW on 27 Oct 2013
  • Set the second favourites price to a user variable every few seconds, then add a condition to the back trigger to not back if the favourite is within 10% (or whatever) price.
  • #3 by bonecrusher on 27 Oct 2013
  • Thanks John,

    That will work for sure, as i need the trigger to stick at what is set, which would be 0.16 cents buffer.

    What would be the steps in MF language on how to do this exactly?

    Thanks

    BONECRUSHER  8)
  • #4 by JohnW on 27 Oct 2013
  • I only started using the program yesterday, but I think this should do what you want pretty much....

    Hmm how to attach a file?
  • #5 by JohnW on 27 Oct 2013
  • Code: [Select]
    <?xml version="1.0"?>
    -<mf-xml> -<block Enabled="1" Protected="0" RepeatTimes="0" Repeat="0.0" Name="New Block 94903082652527728" Active="1" ID="94903082652527728"> -<Triggers> -<trigger> <BlockID>94903082652527728</BlockID> <Active>3</Active> <CondMet>0</CondMet> <Market>0</Market> <ID>94903082652527730</ID> <SelectionType>10</SelectionType> <HandicapID>0</HandicapID> <MarketStatus>2</MarketStatus> <Name>New Trigger 94903082652527730</Name> <RepeatTimes>0</RepeatTimes> <Repeat>5</Repeat> <Enabled>1</Enabled> <Logged>1</Logged> -<ActionSet> <Action>32</Action> <Persistence>0</Persistence> <AmountChange>0</AmountChange> <SettleType>2</SettleType> <Price>2ndfavprice</Price> <Amount>back_price</Amount> <AdjustAmounts>0</AdjustAmounts> <WinLoseOption>0</WinLoseOption> <RemVariable>1</RemVariable> <GreenupType>1</GreenupType> <RemBets>0</RemBets> <UserVariable>0</UserVariable> <UseOptions>0</UseOptions> <TrailingSL>0</TrailingSL> -<CancelOptions> <OptNoBet>0</OptNoBet> <OptPersistence>0</OptPersistence> <OptPersistenceValue>0</OptPersistenceValue> <OptAmount1>0.01</OptAmount1> <OptAmount2>10000000</OptAmount2> <OptPrice1>1.01</OptPrice1> <OptPrice2>1000</OptPrice2> </CancelOptions> <TriggerID>0</TriggerID> </ActionSet> -<conditions> -<tblck Order="0" AndOr="1"> <blcks/> <conds/> </tblck> </conditions> </trigger> -<trigger> <BlockID>94903082652527728</BlockID> <Active>1</Active> <CondMet>0</CondMet> <Market>0</Market> <ID>94903082652527729</ID> <SelectionType>1</SelectionType> <HandicapID>0</HandicapID> <MarketStatus>2</MarketStatus> <Name>New Trigger 94903082652527729</Name> <RepeatTimes>0</RepeatTimes> <Repeat>0.0</Repeat> <Enabled>1</Enabled> <Logged>1</Logged> -<ActionSet> <Action>0</Action> <Persistence>0</Persistence> <AmountChange>0</AmountChange> <SettleType>2</SettleType> <Price>back_price</Price> <Amount>default_backa</Amount> <AdjustAmounts>0</AdjustAmounts> <WinLoseOption>0</WinLoseOption> <RemVariable>1</RemVariable> <GreenupType>1</GreenupType> <RemBets>0</RemBets> <UserVariable>0</UserVariable> <UseOptions>0</UseOptions> <TrailingSL>0</TrailingSL> -<CancelOptions> <OptNoBet>0</OptNoBet> <OptPersistence>0</OptPersistence> <OptPersistenceValue>0</OptPersistenceValue> <OptAmount1>0.01</OptAmount1> <OptAmount2>10000000</OptAmount2> <OptPrice1>1.01</OptPrice1> <OptPrice2>1000</OptPrice2> </CancelOptions> <TriggerID>0</TriggerID> </ActionSet> -<conditions> -<tblck Order="0" AndOr="1"> <blcks/> -<conds> <condition Order="1" AndOr="1" RereadFile="0" Overall="0" SecondParam="" TriggerID="0" Value1="2ndfavprice*0.9" Value2="" CondIndex="2" Param="0" Body="1"/> </conds> </tblck> </conditions> </trigger> </Triggers> </block> -<constants> <const saveValue="0" descr="Optional description" value="10" name="2ndfavprice"/> </constants> <annotation/> </mf-xml>
  • #6 by JohnW on 27 Oct 2013
  • Just copy and paste that code into a text file then open it in mfp and should be golden.

    edit: might want to change 'Globally' to 'Individually for each market'
  • #7 by bonecrusher on 27 Oct 2013
  • Thanks John,

    Is it possible to upload the trigger as a .mft file? with no lock key on the file.

    Thanks

    BONECRUSHER  8)
Pages:
Actions