recognize if in or out market

#1
dear all,
a very simple question, but I cannot find in the manual: how can I understand if I'm in or out of the market?

I need it for a writeif instruction:

writeif (inthemarket?, "you might lose your money", "your money are safe")

tks

cippo
 
#2
dear all,
a very simple question, but I cannot find in the manual: how can I understand if I'm in or out of the market?

I need it for a writeif instruction:

writeif (inthemarket?, "you might lose your money", "your money are safe")

tks

cippo
PHP:
inthemarket = ParamToggle("If I'm", "In the market|out of the market");

Title = WriteIf (inthemarket, "If I'm in the market", "If I'm out of the market");

MyAnswer = WriteIf (inthemarket, "I might lose your money", "My money are safe");

Title = Title + ", "+MyAnswer;
 
#3
thank you Amismart,
I took the opportunity to learn the paramtoggle function, but my question was about the way to recognize automatically, by AFL, if I'm in or out.

Going ahead with the previous example, I want that warning sentence would appear automatically in the title of the graph when I click on an inthemarket bar.

my best attempt has been:
inthemarket= Flip(Buy, Sell);

but buy signal provide a false signal when buyprice doesnt occur

tks again


cippo
 
Last edited:

Similar threads