Click here to Login





                                                   Calling SetHashBrush as a conditional?

  0

0
Josh McCormick
2020-07-10 22:21:12


I'm working on a formula that needs SetHatchBrush called (conditionally) if a simple numeric comparison is true.

Example (in pseudocode):
=============================
if myvar < 10 then SetHatchBrush("Percent20", colorWhite|255);

...unfortunately, I can't come up with the proper syntax to conditionally call SetHatchBrush if my numerical comparison is TRUE. I tried using iff but it didn't seem to like the fact that SetHatchBrush doesn't return any variables.

What's the clever way to do this? Or is this not possible?

Thanks,
Josh McCormick



QuantShare
2020-07-13 13:11:20

  0

Best Answer
It is not possible unfortunately.


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Trading System based on the Previous Week SPY Return
Better Volume Indicator
Indicator/Price Value on a Specific Trading Date
Ignore Orders for Recently Purshased Securities based on Return
Disable or Enable your Stop Rules

How-to Lessons
How to create a custom trading indicator
How to remove a chart pane's margins
How to add a trading indicator to a chart
How to import trading data from CSV files
How to add a metric in the trading system simulation report

Related Forum Threads
Calling a Function from another Function
Function Call
Allow AMM inputs to be set programmatically in script
Help with a Red/Green positive/negative hatched graph?
Quote-Grid

Blog Posts
Create a trading strategy using the money management tool - Part ...
Update Chart Layout based on Active Ticker Symbol
Money Management: Optimize the scale-in strategy
How to measure market strength with the composite tool
How to create a trading system, screen and composite using earnin...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.