Jump to content
Medved Trader Forums
  • 0

Hotkeys - will have "Global Variables"

Mike Medved


5 answers to this question

Recommended Posts

  • 0

Simple case: let's say you have several hotkeys that place a trade at 10% of current buying power. You could put that 10 into the global var and use the var in those hotkeys.

Then if you wanted to switch it to be 15%, you would change it only in one place.

More complex case:  let's say you use the formula

Pos>0?'Sell':Pos<0?'Buy':'None'    in the Action of several of your hotkeys.

Instead of having to put that there, you just create a variable in the global bars called PosAction that has that formula in it, then just use PosAction in your hotkeys' Actions.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...